<?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: variable date in macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/variable-date-in-macro/m-p/347017#M128379</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hm, that sounds tricky. I'm sure it can be coded around somehow but me being a lazy bugger sometimes would probably just create the transposed table in a hidden sheet somewhere and export it straight if that works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jul 2012 08:50:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-07-12T08:50:13Z</dc:date>
    <item>
      <title>variable date in macro</title>
      <link>https://community.qlik.com/t5/QlikView/variable-date-in-macro/m-p/347012#M128374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am busy with a macro which exports various tables to a report in Excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I rename the excel sheet like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;XLSheet1.Name = "INSERT DATE HERE"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I change the name to yesterday's date, in DDMMYYYY format?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very new to VBA, so please spell it out for me... &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;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerhard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 08:17:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-date-in-macro/m-p/347012#M128374</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2012-07-12T08:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: variable date in macro</title>
      <link>https://community.qlik.com/t5/QlikView/variable-date-in-macro/m-p/347013#M128375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you go:&lt;/P&gt;&lt;P&gt;msgbox(ActiveDocument.Evaluate("=Date(Today()-1,'DDMMYYYY')"))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 08:25:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-date-in-macro/m-p/347013#M128375</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-12T08:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: variable date in macro</title>
      <link>https://community.qlik.com/t5/QlikView/variable-date-in-macro/m-p/347014#M128376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Beautiful, I did this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XLSheet1.Name = ActiveDocument.Evaluate("=Date(Today()-1,'DDMMYYYY')")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No need for the message box - bu thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before I mark this as answered - I am busy doing a daily report, where I do a whole bunch of things in QlikView, copy to excel, and then finalise the report there and send out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to get the whole thing done with a macro, triggered by a button in QV. I am making great progress - but this is my first EVER macrom, so I have a few questions...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I do separate posts for each of my questions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 08:30:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-date-in-macro/m-p/347014#M128376</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2012-07-12T08:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: variable date in macro</title>
      <link>https://community.qlik.com/t5/QlikView/variable-date-in-macro/m-p/347015#M128377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No worries Gerhard.&lt;/P&gt;&lt;P&gt;You might want to do a quick search of the forums first though. I remember seeing several examples of exporting stuff to customized Excel reports over the years. Probably a lot of copy/paste stuff in those examples for you to re-use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 08:38:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-date-in-macro/m-p/347015#M128377</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-12T08:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: variable date in macro</title>
      <link>https://community.qlik.com/t5/QlikView/variable-date-in-macro/m-p/347016#M128378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes - that has helped me a LOT. Every line in my macro is stolen from someone else.... and I'm loving it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will then post new questions when I have them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A quick one though...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to paste a table in excel, but I need it Transposed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the following:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;XLSheet1.Paste.Special.Transpose XLSheet1.Range("R8")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run it I get an Excel pop up saying "&lt;EM&gt;Data on the Clipboard is not the same size and shape as the selected area. Do you want to paste it anyway?"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly, I cannot have this message popping up, as it will interrupt the flow - but anyway, when I press OK QlikView says at the top of the Edit Module Screen:&lt;/P&gt;&lt;P&gt;"&lt;EM&gt;Cannot change part of a merged cell&lt;/EM&gt;" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cell R8 is not yet used in any other part of my script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 08:46:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-date-in-macro/m-p/347016#M128378</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2012-07-12T08:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: variable date in macro</title>
      <link>https://community.qlik.com/t5/QlikView/variable-date-in-macro/m-p/347017#M128379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hm, that sounds tricky. I'm sure it can be coded around somehow but me being a lazy bugger sometimes would probably just create the transposed table in a hidden sheet somewhere and export it straight if that works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 08:50:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-date-in-macro/m-p/347017#M128379</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-12T08:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: variable date in macro</title>
      <link>https://community.qlik.com/t5/QlikView/variable-date-in-macro/m-p/347018#M128380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I found a work-around by pasting the table as straight, then copying the values to the correct cells and then deleting the original straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Johannes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 08:59:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-date-in-macro/m-p/347018#M128380</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2012-07-12T08:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: variable date in macro</title>
      <link>https://community.qlik.com/t5/QlikView/variable-date-in-macro/m-p/347019#M128381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you please share the entire code?&lt;/P&gt;&lt;P&gt;I am struggling hard with the same issue&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cry.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 07:22:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-date-in-macro/m-p/347019#M128381</guid>
      <dc:creator />
      <dc:date>2013-09-03T07:22:30Z</dc:date>
    </item>
  </channel>
</rss>

