<?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: Saving Excel file created by macro with current date and formatting in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205754#M626847</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oddly enough, no messages of any kind.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Nov 2016 11:57:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-11-03T11:57:03Z</dc:date>
    <item>
      <title>Saving Excel file created by macro with current date and formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205745#M626831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello QlikView Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to working with macros and have a macro I found in this community that creates an Excel file with multiple tabs (Thanks QlikCommunity!).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to do three (3) additional things with this file and not sure how.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. My priority is: what can I add to this macro script to save the file (have multiple drives so will not save to the usual C-drive, not sure if that is an issue)?&lt;/P&gt;&lt;P&gt;2. Priority 2: When saving the file, what do I need to add to have the current date added to the file name?&lt;/P&gt;&lt;P&gt;3. Not priority, but very helpful: What can I add to format each sheet to have the filter option on each sheet?&amp;nbsp; I am not trying to actually filter anything, just want to format the sheet to have the filter on:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/142708_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found this thread in the community, but do not know how to get this to work for what I have.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/547340"&gt;How to save excel file with current date using macro&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my macro script thus far (again, used base script from this community, so not mine as I did not know how to do this):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600;"&gt;sub exportToExcel_Variant6&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt; '// Array for export definitions&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt; Dim aryExport(2,3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt; aryExport(0,0) = "objPended" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt; aryExport(0,1) = "Pending" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt; aryExport(0,2) = "A1"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt; aryExport(0,3) = "data"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt; aryExport(1,0) = "objApproved" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt; aryExport(1,1) = "Approved" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt; aryExport(1,2) = "A1"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt; aryExport(1,3) = "data"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt; Dim objExcelWorkbook 'as Excel.Workbook&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt; Set objExcelWorkbook = copyObjectsToExcelSheet(ActiveDocument, aryExport)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt; '// Now either just leave Excel open or do some other stuff here&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt; '// like saving the excel, some formatting stuff, ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt;end sub &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 16:00:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205745#M626831</guid>
      <dc:creator />
      <dc:date>2016-11-02T16:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Excel file created by macro with current date and formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205746#M626832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the first two things have a look at this code. &lt;/P&gt;&lt;P&gt;Just adapt the path where you want to save the Excelfile (--&amp;gt;filepath)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1478104156056853 jive_text_macro" jivemacro_uid="_1478104156056853" modifiedtitle="true"&gt;
&lt;P&gt;sub exportToExcel_Variant6&lt;/P&gt;
&lt;P&gt;Dim strFilePath&lt;/P&gt;
&lt;P&gt;Dim strFileName&lt;/P&gt;
&lt;P&gt;timestamp =&amp;nbsp; date()&amp;amp;"-"&amp;amp;time()&lt;/P&gt;
&lt;P&gt;strFilePath = ActiveDocument.GetProperties.FileName&lt;/P&gt;
&lt;P&gt;strFileName = (InStrRev(strFilePath,"\",len(strFilePath)))&lt;/P&gt;
&lt;P&gt;strFileName = Mid(strFilePath, InStrRev(strFilePath,"\") + 1)&lt;/P&gt;
&lt;P&gt;'msgbox(strFileName)&lt;/P&gt;
&lt;P&gt;'// Array for export definitions&lt;/P&gt;
&lt;P&gt;Dim aryExport(2,3)&lt;/P&gt;
&lt;P&gt;aryExport(0,0) = "objPended"&lt;/P&gt;
&lt;P&gt;aryExport(0,1) = "Pending"&lt;/P&gt;
&lt;P&gt;aryExport(0,2) = "A1"&lt;/P&gt;
&lt;P&gt;aryExport(0,3) = "data"&lt;/P&gt;
&lt;P&gt;aryExport(1,0) = "objApproved"&lt;/P&gt;
&lt;P&gt;aryExport(1,1) = "Approved"&lt;/P&gt;
&lt;P&gt;aryExport(1,2) = "A1"&lt;/P&gt;
&lt;P&gt;aryExport(1,3) = "data"&lt;/P&gt;
&lt;P&gt;Dim objExcelWorkbook 'as Excel.Workbook&lt;/P&gt;
&lt;P&gt;Set objExcelWorkbook = copyObjectsToExcelSheet(ActiveDocument, aryExport)&lt;/P&gt;
&lt;P&gt;filePath = "C:\Users\Admin\Desktop\"&amp;amp;strFileName&amp;amp;"-"&amp;amp;timestamp&amp;amp;".xlsx"&lt;/P&gt;
&lt;P&gt;objExcelWorkbook.SaveAs filePath&lt;/P&gt;
&lt;P&gt;end sub &lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 16:30:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205746#M626832</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2016-11-02T16:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Excel file created by macro with current date and formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205747#M626833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the script.&amp;nbsp; As this is new to me, where in this script do I set the file's name?&amp;nbsp; Not really sure what is being done in lines 6 and 7 or 21 and 22, so did not want to edit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 16:59:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205747#M626833</guid>
      <dc:creator />
      <dc:date>2016-11-02T16:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Excel file created by macro with current date and formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205748#M626834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The setup of the macro was to use the QV-Documenttitle as the Filename.&lt;/P&gt;&lt;P&gt;But if you want to use a self created name then use this code to only append the timestamp to the title:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14781067935126186" jivemacro_uid="_14781067935126186"&gt;
&lt;P&gt;sub exportToExcel_Variant6&lt;/P&gt;
&lt;P&gt;timestamp =&amp;nbsp; date()&amp;amp;"-"&amp;amp;time()&lt;/P&gt;
&lt;P&gt;'// Array for export definitions&lt;/P&gt;
&lt;P&gt;Dim aryExport(2,3)&lt;/P&gt;
&lt;P&gt;aryExport(0,0) = "objPended"&lt;/P&gt;
&lt;P&gt;aryExport(0,1) = "Pending"&lt;/P&gt;
&lt;P&gt;aryExport(0,2) = "A1"&lt;/P&gt;
&lt;P&gt;aryExport(0,3) = "data"&lt;/P&gt;
&lt;P&gt;aryExport(1,0) = "objApproved"&lt;/P&gt;
&lt;P&gt;aryExport(1,1) = "Approved"&lt;/P&gt;
&lt;P&gt;aryExport(1,2) = "A1"&lt;/P&gt;
&lt;P&gt;aryExport(1,3) = "data"&lt;/P&gt;
&lt;P&gt;Dim objExcelWorkbook 'as Excel.Workbook&lt;/P&gt;
&lt;P&gt;Set objExcelWorkbook = copyObjectsToExcelSheet(ActiveDocument, aryExport)&lt;/P&gt;
&lt;P&gt;filePath = "&lt;SPAN style="color: #ff0000; text-decoration: underline;"&gt;&lt;STRONG&gt;C:\Users\Admin\Desktop\TITEL HERE&lt;/STRONG&gt;&lt;/SPAN&gt;"&amp;amp;"-"&amp;amp;timestamp&amp;amp;".xlsx"&lt;/P&gt;
&lt;P&gt;objExcelWorkbook.SaveAs filePath&lt;/P&gt;
&lt;P&gt;end sub&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just adapt &lt;SPAN style="color: #ff0000; text-decoration: underline;"&gt;&lt;STRONG&gt;C:\Users\Admin\Desktop\TITEL HERE&lt;/STRONG&gt;&lt;/SPAN&gt; with your path &amp;amp; titel and the macro will add the timestamp to it and saves the document.&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>Wed, 02 Nov 2016 17:16:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205748#M626834</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2016-11-02T17:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Excel file created by macro with current date and formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205749#M626835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oddly enough, it is not working.&amp;nbsp; The file gets created, but nothing is saved and keeps "Book1" as title.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I've used.&amp;nbsp; Can you possibly see what I've done wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub exportToExcel_Variant6&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; timestamp = date()&amp;amp;"-"&amp;amp;time()&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt; '// Array for export definitions&lt;BR /&gt; Dim aryExport(2,3)&lt;BR /&gt; &lt;BR /&gt; aryExport(0,0) = "objPended" &lt;BR /&gt; aryExport(0,1) = "Pending" &lt;BR /&gt; aryExport(0,2) = "A1"&lt;BR /&gt; aryExport(0,3) = "data"&lt;BR /&gt; &lt;BR /&gt; aryExport(1,0) = "objApproved" &lt;BR /&gt; aryExport(1,1) = "Approved" &lt;BR /&gt; aryExport(1,2) = "A1"&lt;BR /&gt; aryExport(1,3) = "data"&lt;BR /&gt; &lt;BR /&gt; Dim objExcelWorkbook 'as Excel.Workbook&lt;BR /&gt; Set objExcelWorkbook = copyObjectsToExcelSheet(ActiveDocument, aryExport)&lt;/P&gt;&lt;P&gt;' Save and quit&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt; filePath = "V:\Senior Products - Finance\SER Analysts\Clinical Analyst\Daily Leadership Reports\New MOIC Daily Census Report\cgx census\&lt;STRONG&gt;CGX Daily Census Report 2 "&amp;amp;"-"&amp;amp;timestamp&amp;amp;".xlsx&lt;/STRONG&gt;"&lt;BR /&gt; objExcelWorkbook.SaveAs filePath&lt;BR /&gt; &lt;BR /&gt; end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 19:02:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205749#M626835</guid>
      <dc:creator />
      <dc:date>2016-11-02T19:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Excel file created by macro with current date and formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205750#M626836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is working for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14781175414325899 jive_text_macro" jivemacro_uid="_14781175414325899" modifiedtitle="true"&gt;
&lt;P&gt;sub exportToExcel_Variant6&lt;/P&gt;
&lt;P&gt;timestamp = date()&lt;/P&gt;
&lt;P&gt;'// Array for export definitions&lt;/P&gt;
&lt;P&gt;Dim aryExport(1,3)&lt;/P&gt;
&lt;P&gt;aryExport(0,0) = "objPended"&lt;/P&gt;
&lt;P&gt;aryExport(0,1) = "Pending"&lt;/P&gt;
&lt;P&gt;aryExport(0,2) = "A1"&lt;/P&gt;
&lt;P&gt;aryExport(0,3) = "data"&lt;/P&gt;
&lt;P&gt;aryExport(1,0) = "objApproved"&lt;/P&gt;
&lt;P&gt;aryExport(1,1) = "Approved"&lt;/P&gt;
&lt;P&gt;aryExport(1,2) = "A1"&lt;/P&gt;
&lt;P&gt;aryExport(1,3) = "data"&lt;/P&gt;
&lt;P&gt;Dim objExcelWorkbook 'as Excel.Workbook&lt;/P&gt;
&lt;P&gt;Set objExcelWorkbook = copyObjectsToExcelSheet(ActiveDocument, aryExport)&lt;/P&gt;
&lt;P&gt;filePath = "V:\Senior Products - Finance\SER Analysts\Clinical Analyst\Daily Leadership Reports\New MOIC Daily Census Report\cgx census\&lt;STRONG&gt;CGX Daily Census Report 2 "&amp;amp;"-"&amp;amp;timestamp&amp;amp;".xlsx&lt;/STRONG&gt;"&lt;/P&gt;
&lt;P&gt;objExcelWorkbook.SaveAs filePath&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;(make sure that the functions like &lt;STRONG&gt;copyObjectsToExcelSheet&lt;/STRONG&gt; are available in Module --&amp;gt; see module of attached app)&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>Wed, 02 Nov 2016 20:16:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205750#M626836</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2016-11-02T20:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Excel file created by macro with current date and formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205751#M626837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will have to further investigate.&amp;nbsp; I took your entire macro script and used it in mine, and still have the same issue.&amp;nbsp; This time however, the file is no longer "Book1" but has 2016 as the file name, but it stays open and does not save, either to my V-drive or my C-drive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for all the help.&amp;nbsp; I will need to keep looking into why it is not saving.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 20:48:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205751#M626837</guid>
      <dc:creator />
      <dc:date>2016-11-02T20:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Excel file created by macro with current date and formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205752#M626840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there an error message showing in module?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 20:52:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205752#M626840</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2016-11-02T20:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Excel file created by macro with current date and formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205753#M626843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karen,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have attached a sample which fulfill all your three requirments. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Kindly let me know If you come across any issues.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2016 03:33:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205753#M626843</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-11-03T03:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Excel file created by macro with current date and formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205754#M626847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oddly enough, no messages of any kind.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2016 11:57:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205754#M626847</guid>
      <dc:creator />
      <dc:date>2016-11-03T11:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Excel file created by macro with current date and formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205755#M626849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and if you start the macro from module?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="142807" alt="Aufnahme_2016_11_03_13_15_36_32.gif" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/142807_Aufnahme_2016_11_03_13_15_36_32.gif" style="height: 348px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2016 12:16:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205755#M626849</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2016-11-03T12:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Excel file created by macro with current date and formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205756#M626851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried it that way as well, and while I receive no error message, the process simply does not move forward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It opens a clean Excel file, labels the first tab "Pended" and then stops, highlighting the following in the module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/142812_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2016 12:35:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205756#M626851</guid>
      <dc:creator />
      <dc:date>2016-11-03T12:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Excel file created by macro with current date and formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205757#M626854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the suggestion, unfortunately, I am quite a novice at this and not sure how to implement this or incorporate it into my module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I add this to my current script in the module?&amp;nbsp; If so, where?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2016 12:36:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205757#M626854</guid>
      <dc:creator />
      <dc:date>2016-11-03T12:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Excel file created by macro with current date and formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205758#M626856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just comment this line by putting&amp;nbsp; ' in front like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'qvDoc.GetApplication.WaitForIdle&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and try again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2016 12:41:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205758#M626856</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2016-11-03T12:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Excel file created by macro with current date and formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205759#M626858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Once I do that, it does create the file properly, but names is 2016 only (not current date) and then stops like before, but this time at the SaveAs filePath section as seen below with the message that SaveAs method of workbook class failed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/142813_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2016 12:56:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205759#M626858</guid>
      <dc:creator />
      <dc:date>2016-11-03T12:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Excel file created by macro with current date and formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205760#M626859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you please show full filePath in macro?&lt;/P&gt;&lt;P&gt;are you sure it is correct? path exists?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2016 13:13:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205760#M626859</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2016-11-03T13:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Excel file created by macro with current date and formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205761#M626860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I just noticed it got cut off.&amp;nbsp; The file path is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V:\Senior Products - Finance\SER Analysts\Clinical Analyst\Daily Leadership Reports\New MOIC Daily Census Report\cgx census&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use it daily and simply copied and pasted it from an Excel file I have in that folder and add the file name piece:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filePath = "V:\Senior Products - Finance\SER Analysts\Clinical Analyst\Daily Leadership Reports\New MOIC Daily Census Report\cgx census\CGX Daily Census Report 2 "&amp;amp;"-"&amp;amp;timestamp&amp;amp;".xlsx" &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2016 13:28:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205761#M626860</guid>
      <dc:creator />
      <dc:date>2016-11-03T13:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Excel file created by macro with current date and formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205762#M626861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and if you delete the filePath row and use the below row like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objExcelWorkbook.SaveAs "V:\Senior Products - Finance\SER Analysts\Clinical Analyst\Daily Leadership Reports\New MOIC Daily Census Report\cgx census\CGX Daily Census Report 2 "&amp;amp;"-"&amp;amp;timestamp&amp;amp;".xlsx"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the same error appearing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2016 13:34:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205762#M626861</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2016-11-03T13:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Excel file created by macro with current date and formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205763#M626862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried it and same error message.&amp;nbsp; Could it have something to do with the fact that this is a server I connect to using a VPN?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried saving to C-drive using the following and get this error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New FilePath:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objExcelWorkbook.SaveAs "C:\Users\KSM9972\Desktop\CGX Daily Census Report 2 "&amp;amp;"-"&amp;amp;timestamp&amp;amp;".xlsx" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New Error Message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Microsoft Excel cannot access the file 'C:\Users\KSM9972\Desktop\CGX Daily Census Report 2 -11\3\7C448000'. There are several possible reasons: &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2016 14:05:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205763#M626862</guid>
      <dc:creator />
      <dc:date>2016-11-03T14:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Excel file created by macro with current date and formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205764#M626863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as long as the V disk is mounted in your system that should not be the problem!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it possible that you recently updated your excel version from an old to a newer one?&lt;/P&gt;&lt;P&gt;If yes then probably the SaveAs method wont work in this way und you will haveto use either this command:&lt;/P&gt;&lt;P&gt;objExcelWorkbook.SaveAs ("V:\Senior Products - Finance\SER Analysts\Clinical Analyst\Daily Leadership Reports\New MOIC Daily Census Report\cgx census\CGX Daily Census Report 2 "&amp;amp;"-"&amp;amp;timestamp&amp;amp;".xlsx"), 56&lt;/P&gt;&lt;P&gt;or this command:&lt;/P&gt;&lt;P&gt;objExcelWorkbook.SaveAs ("V:\Senior Products - Finance\SER Analysts\Clinical Analyst\Daily Leadership Reports\New MOIC Daily Census Report\cgx census\CGX Daily Census Report 2 "&amp;amp;"-"&amp;amp;timestamp&amp;amp;".xlsx"), 43&lt;/P&gt;&lt;P&gt;in order to save the document according the version you are using!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for reference have a look here:&lt;/P&gt;&lt;P&gt;petri.com/forums/forum/windows-scripting/general-scripting/28303-saveas-method-of-workbook-class-failed&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>Thu, 03 Nov 2016 14:17:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Saving-Excel-file-created-by-macro-with-current-date-and/m-p/1205764#M626863</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2016-11-03T14:17:54Z</dc:date>
    </item>
  </channel>
</rss>

