<?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 'File Save As' including a Field Value &amp; date stamp in file name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/File-Save-As-including-a-Field-Value-date-stamp-in-file-name/m-p/265546#M1207155</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got around the save as issue by creating a couple of variables and using the following code:&lt;/P&gt;&lt;P&gt;set aa=ActiveDocument.Variables("vContributor_Name")&lt;BR /&gt;mynamevar=aa.GetContent.String&lt;BR /&gt;&lt;BR /&gt;set bb=ActiveDocument.Variables("vPPT_Date")&lt;BR /&gt;mydatevar=bb.GetContent.String&lt;/P&gt;&lt;P&gt;and welding as follows:&lt;/P&gt;&lt;P&gt;PPPres.SaveAs "C:\XXX\XXX\FileName - " &amp;amp; [mynamevar] &amp;amp; " - " &amp;amp; [mydatevar] &amp;amp; ".ppt"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Sep 2010 14:55:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-09-08T14:55:02Z</dc:date>
    <item>
      <title>'File Save As' including a Field Value &amp; date stamp in file name</title>
      <link>https://community.qlik.com/t5/QlikView/File-Save-As-including-a-Field-Value-date-stamp-in-file-name/m-p/265545#M1207153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;I'm a real newbie to this so apologies from the outset if the copy/paste below goes screwy or if the font is a bit iffy!&lt;BR /&gt;&lt;STRONG&gt;Scenario&lt;/STRONG&gt;: I am running a batch file that opens a qvw that then creates various tabs, including many charts &amp;amp; graphs that I am then exporting to Powerpoint via a macro; again across many different slides into various positions, all of which works fine [sample code below &amp;amp; thanks to the many contributors whose ideas have helped create it].&lt;BR /&gt;However, &lt;STRONG&gt;I want to save my qvw file as "X:\xxx\xxx_([Contributor Name])_(Date).qvw" where the [Contributor Name] is a field that has been loaded to Qlikview and that I am making use of internally within a text box. Also, I want to include the date [yyyymmdd] in the file name.&lt;/STRONG&gt; I have tried various syntax options &amp;amp; searched the forum for ideas but I've so far drawn a blank on how to do this!!&lt;BR /&gt;Can anyone please HELP!?&lt;/P&gt;&lt;P&gt;Sample code:&lt;BR /&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;sub powerpoint&lt;BR /&gt; Set PPApp = CreateObject("Powerpoint.Application")&lt;BR /&gt; PPApp.Visible = True&lt;BR /&gt; Set PPPres = PPApp.Presentations.Open ("C:\xxx\xxx.ppt")&lt;BR /&gt; PPApp.Visible = True&lt;BR /&gt; ActiveDocument.Reload&lt;BR /&gt; ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt; set s=ActiveDocument.Sheets("Summary")&lt;BR /&gt; ActiveDocument.Sheets("Summary").Activate&lt;BR /&gt; ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt; ActiveDocument.GetSheetObject("CH28").Restore&lt;BR /&gt; ActiveDocument.GetSheetObject("CH28").CopyBitmapToClipboard&lt;BR /&gt; PPApp.Visible = True&lt;BR /&gt; Set PPSlide = PPPres.Slides(11)&lt;BR /&gt; PPSlide.Shapes.Paste&lt;BR /&gt; PPSlide.Shapes(PPSlide.Shapes.Count).LockAspectRatio = -3&lt;BR /&gt; PPSlide.Shapes(PPSlide.Shapes.Count).Left = 54.1383&lt;BR /&gt; PPSlide.Shapes(PPSlide.Shapes.Count).Top = 286.2812&lt;BR /&gt; PPSlide.Shapes(PPSlide.Shapes.Count).Height = 187.0748&lt;BR /&gt; PPSlide.Shapes(PPSlide.Shapes.Count).Width = 284.297&lt;BR /&gt; ActiveDocument.GetSheetObject("CH28").Minimize&lt;BR /&gt; ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt; set PPApp = nothing&lt;BR /&gt; set PPPRes = nothing&lt;BR /&gt; set PPSlide = nothing&lt;BR /&gt; ActiveDocument.SaveAs "C:\xxx\xxx_([Contributor Name])_(Date).qvw"&lt;BR /&gt; ActiveDocument.GetApplication.Quit&lt;BR /&gt;end sub&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Also, has anyone managed to automate the copying of tables from qvw to PowerPoint; as I just can't get it to paste and my macro stops at the point of paste, whatever syntax I use; even though, if I then Ctrl-V in PowerPoint it places the data perfectly. [So far I have got 'round this by splitting my tables out into 1 line text boxes that I then seperately weld back into PowerPoint via macro!]&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jul 2010 11:54:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-Save-As-including-a-Field-Value-date-stamp-in-file-name/m-p/265545#M1207153</guid>
      <dc:creator />
      <dc:date>2010-07-14T11:54:22Z</dc:date>
    </item>
    <item>
      <title>'File Save As' including a Field Value &amp; date stamp in file name</title>
      <link>https://community.qlik.com/t5/QlikView/File-Save-As-including-a-Field-Value-date-stamp-in-file-name/m-p/265546#M1207155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got around the save as issue by creating a couple of variables and using the following code:&lt;/P&gt;&lt;P&gt;set aa=ActiveDocument.Variables("vContributor_Name")&lt;BR /&gt;mynamevar=aa.GetContent.String&lt;BR /&gt;&lt;BR /&gt;set bb=ActiveDocument.Variables("vPPT_Date")&lt;BR /&gt;mydatevar=bb.GetContent.String&lt;/P&gt;&lt;P&gt;and welding as follows:&lt;/P&gt;&lt;P&gt;PPPres.SaveAs "C:\XXX\XXX\FileName - " &amp;amp; [mynamevar] &amp;amp; " - " &amp;amp; [mydatevar] &amp;amp; ".ppt"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Sep 2010 14:55:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-Save-As-including-a-Field-Value-date-stamp-in-file-name/m-p/265546#M1207155</guid>
      <dc:creator />
      <dc:date>2010-09-08T14:55:02Z</dc:date>
    </item>
  </channel>
</rss>

