<?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 monthly Report to excel-file via macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/monthly-Report-to-excel-file-via-macro/m-p/293191#M108822</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;Thanks for your answer. &lt;/P&gt;&lt;P&gt;I have some problems with your solution. I want to export a pivot-table, but with &lt;BR /&gt;objExcel.Cells(1,1).Value = "CH404" &lt;BR /&gt;the Excelsheet has only this string, not the table. Maybe the GetSheetObject(objectID) is missing in your example? I'm a real beginner in VB. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;Then I want to save it automatical, but the sheet name is fixed. Can I write there something like&lt;BR /&gt;objWorksheet.Name = MonthName(today())?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards vicky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Feb 2012 09:41:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-02-20T09:41:13Z</dc:date>
    <item>
      <title>monthly Report to excel-file via macro</title>
      <link>https://community.qlik.com/t5/QlikView/monthly-Report-to-excel-file-via-macro/m-p/293189#M108820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everbody,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Is it possible to write monthly one table to one excel-file with one sheet for one month?&lt;BR /&gt;For example, the script runs at 01.01.2012 and creates an Excel-file where in the first sheet the table was exported.&lt;BR /&gt;On 01.02.2012 the script runs again and export the table in the Excel-File from january in the second sheet, and so on.&lt;BR /&gt;Is it possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards vicky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 07:36:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/monthly-Report-to-excel-file-via-macro/m-p/293189#M108820</guid>
      <dc:creator />
      <dc:date>2012-02-17T07:36:30Z</dc:date>
    </item>
    <item>
      <title>monthly Report to excel-file via macro</title>
      <link>https://community.qlik.com/t5/QlikView/monthly-Report-to-excel-file-via-macro/m-p/293190#M108821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, yes it is possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This macro will open an already existing document, add a sheet, save a value to the sheet , save it and then quit excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution requires that you have Excel installed on the computer this runs on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;P&gt;----------------------------&lt;/P&gt;&lt;P&gt;Sub SaveToExcel&lt;BR /&gt; Dim objExcel&lt;BR /&gt; Dim objWorkbook &lt;BR /&gt; Dim objWorksheet&lt;BR /&gt; &lt;BR /&gt; Set objExcel = CreateObject("Excel.Application")&lt;BR /&gt; &lt;BR /&gt; objExcel.Visible = False&lt;BR /&gt; &lt;BR /&gt; Set objWorkbook = objExcel.Workbooks.Open ("C:\test.xlsx")&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; set objWorksheet = objExcel.Worksheets.Add()&lt;BR /&gt; objWorksheet.Activate&lt;/P&gt;&lt;P&gt; objWorksheet.Name = "January"&lt;/P&gt;&lt;P&gt; objExcel.Cells(1, 1).Value = "Test value 3"&lt;BR /&gt; objWorkbook.Save()&lt;BR /&gt; objWorkbook.close&lt;BR /&gt; objExcel.Quit 'this is important to avoid memory leaks&lt;/P&gt;&lt;P&gt; msgbox "Workbooks saved"&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;----------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 09:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/monthly-Report-to-excel-file-via-macro/m-p/293190#M108821</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2012-02-17T09:02:30Z</dc:date>
    </item>
    <item>
      <title>monthly Report to excel-file via macro</title>
      <link>https://community.qlik.com/t5/QlikView/monthly-Report-to-excel-file-via-macro/m-p/293191#M108822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;Thanks for your answer. &lt;/P&gt;&lt;P&gt;I have some problems with your solution. I want to export a pivot-table, but with &lt;BR /&gt;objExcel.Cells(1,1).Value = "CH404" &lt;BR /&gt;the Excelsheet has only this string, not the table. Maybe the GetSheetObject(objectID) is missing in your example? I'm a real beginner in VB. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;Then I want to save it automatical, but the sheet name is fixed. Can I write there something like&lt;BR /&gt;objWorksheet.Name = MonthName(today())?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards vicky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2012 09:41:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/monthly-Report-to-excel-file-via-macro/m-p/293191#M108822</guid>
      <dc:creator />
      <dc:date>2012-02-20T09:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: monthly Report to excel-file via macro</title>
      <link>https://community.qlik.com/t5/QlikView/monthly-Report-to-excel-file-via-macro/m-p/293192#M108823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hope the attached file will be helpful for your requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashok&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2012 10:42:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/monthly-Report-to-excel-file-via-macro/m-p/293192#M108823</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-20T10:42:38Z</dc:date>
    </item>
    <item>
      <title>monthly Report to excel-file via macro</title>
      <link>https://community.qlik.com/t5/QlikView/monthly-Report-to-excel-file-via-macro/m-p/293193#M108824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Vicky, have a look at Ashok's great example. It seems to do what you want. If not - post your QWV with your pivot here if you need a more specific/detailed solution. //Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2012 14:09:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/monthly-Report-to-excel-file-via-macro/m-p/293193#M108824</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2012-02-20T14:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: monthly Report to excel-file via macro</title>
      <link>https://community.qlik.com/t5/QlikView/monthly-Report-to-excel-file-via-macro/m-p/293194#M108825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I'm late, sorry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have now tried the sample out. It works &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;I have only one further question. There are lots of formatting stuff to do afterwards exporting the table to excel. The question is now: Can I only add the table for the actual month to the excel file? &lt;BR /&gt;This macro generates every time all month new - and whyever not in the correct order. Today the excel file beginns with sheet march till juni and then january and february. But that's not so important.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The file would be always at the same place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vicky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 07:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/monthly-Report-to-excel-file-via-macro/m-p/293194#M108825</guid>
      <dc:creator />
      <dc:date>2012-06-27T07:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: monthly Report to excel-file via macro</title>
      <link>https://community.qlik.com/t5/QlikView/monthly-Report-to-excel-file-via-macro/m-p/293195#M108826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if I understand you right, you want to update the same excel file once every month, lets say the first day every month, and add a sheet with the previous month data into that excel file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 07:57:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/monthly-Report-to-excel-file-via-macro/m-p/293195#M108826</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2012-06-27T07:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: monthly Report to excel-file via macro</title>
      <link>https://community.qlik.com/t5/QlikView/monthly-Report-to-excel-file-via-macro/m-p/293196#M108827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, that would be great.&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; Or isn't it possible? &lt;BR /&gt;The excel file is only for one year, so it's starts always with a zero sheet where to add the data for january.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vicky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 11:02:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/monthly-Report-to-excel-file-via-macro/m-p/293196#M108827</guid>
      <dc:creator />
      <dc:date>2012-06-27T11:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: monthly Report to excel-file via macro</title>
      <link>https://community.qlik.com/t5/QlikView/monthly-Report-to-excel-file-via-macro/m-p/293197#M108828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. It is possible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See my attached file. You need to set up some variables in the load script to get it running on your machine and if you need to test it today then change the variable vDayForExcelReport = 1 to todays day-numer and then reload again. It triggers the macro on reload, but you may also run it with the macro button. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 12:59:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/monthly-Report-to-excel-file-via-macro/m-p/293197#M108828</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2012-06-27T12:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: monthly Report to excel-file via macro</title>
      <link>https://community.qlik.com/t5/QlikView/monthly-Report-to-excel-file-via-macro/m-p/293198#M108829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's great, thanks. After I noticed that the DayForExcelReport wasn't today in the test, how you still wrote, I was amazing. &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;Only one question, yet, for a better understanding. &lt;BR /&gt;In the first macro you wrote &lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("Month").GetPossibleValues(totBranch)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the second you wrote &lt;BR /&gt;ActiveDocument.Fields("Month").GetPossibleValues(12)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In both cases there are only 12 month. When do I use totBranch and when the real number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Regards Vicky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 11:54:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/monthly-Report-to-excel-file-via-macro/m-p/293198#M108829</guid>
      <dc:creator />
      <dc:date>2012-07-05T11:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: monthly Report to excel-file via macro</title>
      <link>https://community.qlik.com/t5/QlikView/monthly-Report-to-excel-file-via-macro/m-p/293199#M108830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vicky,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have been on vacation, so thats why the late reply.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;At first I did not understand, but now I see that you are comparing my macro with the macro by Ashok.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In Ashoks macro you are refering to the line:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;Set strMonth = ActiveDocument.Fields("Month").GetPossibleValue(totBranch)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and you compare it to the line in my macro:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;Set MonthField = ActiveDocument.Fields("Month").GetPossibleValues(12)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I don't know what &lt;SPAN style="color: #008000;"&gt;totBranch &lt;/SPAN&gt;comes from since it is not defined in his macro. The result is therefore comparable to just writing &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Set strMonth = ActiveDocument.Fields("Month").GetPossibleValue() &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The difference in writing &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;1) GetPossibleValue()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #33cccc;"&gt;2) GetPossibleValue(12)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993366;"&gt;3) GetPossibleValue(1923)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;is that Qkliview will fetch &lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;1) All possible values&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #33cccc;"&gt;2) Max 2 possible values&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993366;"&gt;3) Max 1923 possible values.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;And you can also write it like this:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #99cc00;"&gt;whatever=10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;GetPossibleValue(whatever)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which will get max 10 possible values, since the variable whatever is equal to 10.&lt;/P&gt;&lt;P&gt;if you write like this:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;GetPossibleValue(anything)&lt;/P&gt;&lt;P&gt;and never define "anything" it will be like writing&lt;/P&gt;&lt;P&gt;GetPossibleValue()&lt;/P&gt;&lt;P&gt;Which is the same as getting all possible values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hop this helps.&lt;/P&gt;&lt;P&gt;Best Regards&lt;BR /&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2012 08:29:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/monthly-Report-to-excel-file-via-macro/m-p/293199#M108830</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2012-07-16T08:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: monthly Report to excel-file via macro</title>
      <link>https://community.qlik.com/t5/QlikView/monthly-Report-to-excel-file-via-macro/m-p/293200#M108831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you enjoined your vacations &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;Thanks for your explanation. Now I'm understanding the macro better. Hope I will keep it in mind for the next time &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;Have a nice day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards &lt;/P&gt;&lt;P&gt;Vicky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2012 06:55:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/monthly-Report-to-excel-file-via-macro/m-p/293200#M108831</guid>
      <dc:creator />
      <dc:date>2012-07-17T06:55:42Z</dc:date>
    </item>
  </channel>
</rss>

