<?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: Keeping Leading Zero in Export in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Keeping-Leading-Zero-in-Export/m-p/1337092#M614327</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Frank&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp; This is perfect, was a silly mistake on my end that I couldn't get it to work.&amp;nbsp; Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Jul 2017 10:10:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-07-24T10:10:04Z</dc:date>
    <item>
      <title>Keeping Leading Zero in Export</title>
      <link>https://community.qlik.com/t5/QlikView/Keeping-Leading-Zero-in-Export/m-p/1337087#M614322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to export customer number from a table into excel.&amp;nbsp; If use the XL button they remain as text but if I use a macro these turn to a number and drop the leading zero.&amp;nbsp; If was only 1 table I would use the XL button but there is 20 tables and is time consuming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone any ideas on what I can add to the macro to keep table as text?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for help in advance &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub export_whole_customer_list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set XLApp = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;XLApp.Visible = True&lt;/P&gt;&lt;P&gt;set XLDoc = XLApp.Workbooks.Add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XLApp.Worksheets.Add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set xlSheet = xlDoc.Worksheets("Sheet1")&lt;/P&gt;&lt;P&gt;xlSheet.Activate&lt;/P&gt;&lt;P&gt;set obj = ActiveDocument.getsheetobject("CH199")&lt;/P&gt;&lt;P&gt;obj.CopyTableToClipboard true&lt;/P&gt;&lt;P&gt;xlSheet.Range("A3")&lt;/P&gt;&lt;P&gt;xlSheet.Paste&lt;/P&gt;&lt;P&gt;XLApp.Sheets("Sheet1").Name = "customer"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Customer No&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Customer Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Email&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Telephone1&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Telephone 2&lt;/STRONG&gt;&lt;/TH&gt;&lt;TD&gt;Total Sale&lt;/TD&gt;&lt;TD&gt;Total Qty&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;12345&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Mrs Happy&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;A class="jive-link-email-small" href="mailto:happy@test.com"&gt;happy@test.com&lt;/A&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01234567899&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;07812341234&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;200&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;65478&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Mr Grumpy&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;A class="jive-link-email-small" href="mailto:grumpy@test.com"&gt;grumpy@test.com&lt;/A&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;02136549874&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;07898746321&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;800&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2017 15:14:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keeping-Leading-Zero-in-Export/m-p/1337087#M614322</guid>
      <dc:creator />
      <dc:date>2017-07-19T15:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping Leading Zero in Export</title>
      <link>https://community.qlik.com/t5/QlikView/Keeping-Leading-Zero-in-Export/m-p/1337088#M614323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15006450796587624" jivemacro_uid="_15006450796587624"&gt;
&lt;P&gt;sub export_whole_customer_list&lt;/P&gt;
&lt;P&gt;Set objExcel = CreateObject("Excel.Application")&lt;/P&gt;
&lt;P&gt;objExcel.Visible = True&lt;/P&gt;
&lt;P&gt;objExcel.DisplayAlerts = True&lt;/P&gt;
&lt;P&gt;Set xlDoc = objExcel.Workbooks.Add&lt;/P&gt;
&lt;P&gt;Set xlSheet = xlDoc.Worksheets("Tabelle1")&lt;/P&gt;
&lt;P&gt;set obj = ActiveDocument.GetSheetObject("TB01")&lt;/P&gt;
&lt;P&gt;xlDoc.WorkSheets("Tabelle1").Range("D:E").EntireColumn.NumberFormat = "@"&lt;/P&gt;
&lt;P&gt;obj.CopyTextToClipboard&lt;/P&gt;
&lt;P&gt;objExcel.Range("A1").PasteSpecial&lt;/P&gt;
&lt;P&gt;end sub&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see attached file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2017 13:52:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keeping-Leading-Zero-in-Export/m-p/1337088#M614323</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2017-07-21T13:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping Leading Zero in Export</title>
      <link>https://community.qlik.com/t5/QlikView/Keeping-Leading-Zero-in-Export/m-p/1337089#M614324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Frank for your response &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;My object is a chart rather and a table as Total Sales and Qty is a calculation, but will see if I can change this somehow to let me use a chart instead. But if you have any further guidance would greatly appreciate it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Example works great for the sample data that I had above. Thank you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2017 14:05:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keeping-Leading-Zero-in-Export/m-p/1337089#M614324</guid>
      <dc:creator />
      <dc:date>2017-07-21T14:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping Leading Zero in Export</title>
      <link>https://community.qlik.com/t5/QlikView/Keeping-Leading-Zero-in-Export/m-p/1337090#M614325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your question is answered please close this thread by marking the correct answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-14806"&gt;Qlik Community Tip: Marking Replies as Correct or Helpful&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2017 14:27:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keeping-Leading-Zero-in-Export/m-p/1337090#M614325</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2017-07-21T14:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping Leading Zero in Export</title>
      <link>https://community.qlik.com/t5/QlikView/Keeping-Leading-Zero-in-Export/m-p/1337091#M614326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just adapt the objectID of the chart inside the macro. it works the same way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2017 14:53:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keeping-Leading-Zero-in-Export/m-p/1337091#M614326</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2017-07-21T14:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping Leading Zero in Export</title>
      <link>https://community.qlik.com/t5/QlikView/Keeping-Leading-Zero-in-Export/m-p/1337092#M614327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Frank&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp; This is perfect, was a silly mistake on my end that I couldn't get it to work.&amp;nbsp; Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2017 10:10:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keeping-Leading-Zero-in-Export/m-p/1337092#M614327</guid>
      <dc:creator />
      <dc:date>2017-07-24T10:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping Leading Zero in Export</title>
      <link>https://community.qlik.com/t5/QlikView/Keeping-Leading-Zero-in-Export/m-p/2426877#M1225419</link>
      <description>&lt;P&gt;Hi, thank you for your suggestion, but with this what i observed, when we are using this with Test then it is working fine, as well on post reload function, but when we copy anything (like any file or text) from my system then this macro is doing misbehave at this time macro is pasting last copied value in exported excel.&lt;/P&gt;
&lt;P&gt;So, how we can get the solution for that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;RR&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 04:18:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keeping-Leading-Zero-in-Export/m-p/2426877#M1225419</guid>
      <dc:creator>rruthan</dc:creator>
      <dc:date>2024-03-05T04:18:55Z</dc:date>
    </item>
  </channel>
</rss>

