<?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: How to save excel file with current date using macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-save-excel-file-with-current-date-using-macro/m-p/667602#M1299315</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;OL class="dp-j" start="1" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; list-style-position: initial; list-style-image: initial; color: #5c5c5c; margin-bottom: 1px !important; margin-left: 45px !important;"&gt;&lt;LI&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit; font-weight: inherit;"&gt;' Save and quit&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;vX=Year(now())&amp;amp;month(now())&amp;amp;day(now())&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp; objExcelSheet.SaveAs &lt;SPAN class="string" style="font-style: inherit; color: blue; background-color: inherit; font-size: 9pt !important;"&gt;"C:\documenten\test\test"&amp;amp;vX&amp;amp;".xlsx"&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp; objExcelApp.Application.Quit&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp; SET objExcelSheet = NOTHING&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp; SET objExcelApp = NOTHING&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit; font-weight: inherit;"&gt;Hope this helps&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jun 2014 12:23:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-12T12:23:55Z</dc:date>
    <item>
      <title>How to save excel file with current date using macro</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-save-excel-file-with-current-date-using-macro/m-p/667601#M1299310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a sheet with 2 objects.&lt;/P&gt;&lt;P&gt;These objects are sent to an existing Excel document using macro. (Found on this community)&lt;/P&gt;&lt;P&gt;Then is saves the file (overwrite)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to save the file with a sort of timestamp in it's document name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Who can help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to save the file like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_14025683775938135 jive_macro_code" jivemacro_uid="_14025683775938135" modifiedtitle="true"&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; ' Save and quit&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; objExcelSheet.SaveAs "C:\documenten\test\test20140612.xlsx"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; objExcelApp.Application.Quit&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; SET objExcelSheet = NOTHING&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; SET objExcelApp = NOTHING&amp;nbsp; &lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But then with a variable date / date function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-save-excel-file-with-current-date-using-macro/m-p/667601#M1299310</guid>
      <dc:creator />
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to save excel file with current date using macro</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-save-excel-file-with-current-date-using-macro/m-p/667602#M1299315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;OL class="dp-j" start="1" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; list-style-position: initial; list-style-image: initial; color: #5c5c5c; margin-bottom: 1px !important; margin-left: 45px !important;"&gt;&lt;LI&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit; font-weight: inherit;"&gt;' Save and quit&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;vX=Year(now())&amp;amp;month(now())&amp;amp;day(now())&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp; objExcelSheet.SaveAs &lt;SPAN class="string" style="font-style: inherit; color: blue; background-color: inherit; font-size: 9pt !important;"&gt;"C:\documenten\test\test"&amp;amp;vX&amp;amp;".xlsx"&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp; objExcelApp.Application.Quit&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp; SET objExcelSheet = NOTHING&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp; SET objExcelApp = NOTHING&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit; font-weight: inherit;"&gt;Hope this helps&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 12:23:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-save-excel-file-with-current-date-using-macro/m-p/667602#M1299315</guid>
      <dc:creator />
      <dc:date>2014-06-12T12:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to save excel file with current date using macro</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-save-excel-file-with-current-date-using-macro/m-p/667603#M1299320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was the right solution..&lt;/P&gt;&lt;P&gt;Now I have 1 more question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want Qlikview to open the saved file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is an action on a button that calls the Macro and opens the file.&lt;/P&gt;&lt;P&gt;I need the same date in this screen at "bestandsnaam": (Sorry for the dutch system language)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="save excel file.jpg" class="jive-image" src="/legacyfs/online/60529_save excel file.jpg" style="width: 620px; height: 511px;" /&gt;&lt;/P&gt;&lt;P&gt;Someone who knows how to solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 14:47:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-save-excel-file-with-current-date-using-macro/m-p/667603#M1299320</guid>
      <dc:creator />
      <dc:date>2014-06-12T14:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to save excel file with current date using macro</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-save-excel-file-with-current-date-using-macro/m-p/667604#M1299324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;place this expression in place of filename/bestandsnaam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='D:\Test\Test'&amp;amp; year(today())&amp;amp;num(Month(Today()),00)&amp;amp;day(today())&amp;amp;'.xlsx'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='D:\Test\Test'&amp;amp; year(today())&amp;amp;Repeat('0', 2 - Len(num(Month(Today()))) )&amp;amp; num(Month(Today()))&amp;amp;day(today())&amp;amp;'.xlsx'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 15:34:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-save-excel-file-with-current-date-using-macro/m-p/667604#M1299324</guid>
      <dc:creator />
      <dc:date>2014-06-12T15:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to save excel file with current date using macro</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-save-excel-file-with-current-date-using-macro/m-p/667605#M1299328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 08:10:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-save-excel-file-with-current-date-using-macro/m-p/667605#M1299328</guid>
      <dc:creator />
      <dc:date>2014-06-13T08:10:44Z</dc:date>
    </item>
  </channel>
</rss>

