<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Macro number format thousand separator in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-number-format-thousand-separator/m-p/582810#M216455</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply. The conditional formatting you provide works perfectly.&lt;/P&gt;&lt;P&gt;I would now like to format negative values within brackets and still apply the same logic for thousand separators.&lt;/P&gt;&lt;P&gt;Is that possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jan 2014 13:13:50 GMT</pubDate>
    <dc:creator>1000qlik</dc:creator>
    <dc:date>2014-01-29T13:13:50Z</dc:date>
    <item>
      <title>Macro number format thousand separator</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-number-format-thousand-separator/m-p/582808#M216453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using macros to export some tables to Excel and apply a specific format.&lt;/P&gt;&lt;P&gt;I am struggling with the thousand separator in the number formatting.&lt;/P&gt;&lt;P&gt;It should be a single quote ' and should apply to thousands and millions, if any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Examples:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;222111000 should be 222'111'000&lt;/LI&gt;&lt;LI&gt;1000 should be 1'000&lt;/LI&gt;&lt;LI&gt;999 should be 999 (the same)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a line code like this:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13909923012081811" jivemacro_uid="_13909923012081811"&gt;
&lt;P&gt;objExcelDoc.Sheets(sheetName).Columns("C:K").EntireColumn.NumberFormat = "#'##0;(#'##0)"&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the result in this:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;222111'000 (missing millions separator)&lt;/LI&gt;&lt;LI&gt;1'000 (ok)&lt;/LI&gt;&lt;LI&gt;'999 (no single quote should appear)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I look at the format in Excel, there are "\" automatically added that I think are causing the issue: &lt;STRONG&gt;#\'##0;(#\'##0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 10:52:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-number-format-thousand-separator/m-p/582808#M216453</guid>
      <dc:creator>1000qlik</dc:creator>
      <dc:date>2014-01-29T10:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Macro number format thousand separator</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-number-format-thousand-separator/m-p/582809#M216454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this is only possible with a conditional formating, try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[&amp;gt;=1000000]#'###'##0;[&amp;gt;=1000]#'##0;#&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 12:25:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-number-format-thousand-separator/m-p/582809#M216454</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-01-29T12:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Macro number format thousand separator</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-number-format-thousand-separator/m-p/582810#M216455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply. The conditional formatting you provide works perfectly.&lt;/P&gt;&lt;P&gt;I would now like to format negative values within brackets and still apply the same logic for thousand separators.&lt;/P&gt;&lt;P&gt;Is that possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 13:13:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-number-format-thousand-separator/m-p/582810#M216455</guid>
      <dc:creator>1000qlik</dc:creator>
      <dc:date>2014-01-29T13:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Macro number format thousand separator</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-number-format-thousand-separator/m-p/582811#M216456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can, but I have found the setting a little flakey. I copy the format string to the clipboard, set the thousands separator and decimal separator (even though the are correct), and then paste the format string back. Hey presto! and it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 13:24:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-number-format-thousand-separator/m-p/582811#M216456</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-01-29T13:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Macro number format thousand separator</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-number-format-thousand-separator/m-p/582812#M216457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As long as it works I'm happy &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Would you have a sample code that achieves this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 13:37:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-number-format-thousand-separator/m-p/582812#M216457</guid>
      <dc:creator>1000qlik</dc:creator>
      <dc:date>2014-01-29T13:37:45Z</dc:date>
    </item>
  </channel>
</rss>

