<?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 SV:Export to excel macro with dynamic name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Export-to-excel-macro-with-dynamic-name/m-p/175859#M44093</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Dear All,&lt;/P&gt;&lt;P&gt;If i want to see all the selected items in a report in the print PDF Preview how can i do it&lt;/P&gt;&lt;P&gt;Please Suggest&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pranav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 May 2010 12:21:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-20T12:21:20Z</dc:date>
    <item>
      <title>Export to excel macro with dynamic name</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-macro-with-dynamic-name/m-p/175853#M44087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We run an audit file for many clients and it produces a team list for each client. From this I hope to have a macro that will export an excel document based upon the client I select and save the document away with a static path eg. C:Team_Audit\ &amp;amp; &amp;lt;field name selected&amp;gt; automatically.&lt;/P&gt;&lt;P&gt;Currently I need several macros and I need to pick the client name from a field then click the corresponding macro so that it is saved away in the same location as the rest, but then saved as the client name hard coded in quotes within the macro. New clients come along frequently and as such I need to re-write a new macro. I would prefer one button that saves same location again and again, but will store away the excel name based upon a specific field record I select.&lt;/P&gt;&lt;P&gt;Does anyone have a solution they could share?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Mar 2010 19:09:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-macro-with-dynamic-name/m-p/175853#M44087</guid>
      <dc:creator />
      <dc:date>2010-03-10T19:09:36Z</dc:date>
    </item>
    <item>
      <title>SV:Export to excel macro with dynamic name</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-macro-with-dynamic-name/m-p/175854#M44088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, if I understand your request correctly, you want a macro that sets the name of the saved excel-file dynamically. Hopefully, the code below will do just that and a little more. I have added some comments too, so you may make your own changes accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;sub Export&lt;BR /&gt;&lt;BR /&gt; set f = activedocument.Fields("YourFieldHere")&lt;BR /&gt;&lt;BR /&gt; if IsEmpty(f.GetSelectedValues) then&lt;BR /&gt; set pv = f.GetSelectedValues 'adds selected values if any&lt;BR /&gt; else&lt;BR /&gt; set pv = f.GetPossibleValues(1000) 'adds possible values if none selected&lt;BR /&gt; end if&lt;BR /&gt;&lt;BR /&gt; set Array1 = f.GetNoValues 'empty array&lt;BR /&gt; for i = 0 to pv.count-1 'adds values from the first array&lt;BR /&gt; Array1.Add&lt;BR /&gt; Array1(i).Text = pv.item(i).Text&lt;BR /&gt; Array1(i).IsNumeric = false 'if text in your field&lt;BR /&gt; next&lt;BR /&gt;&lt;BR /&gt; 'Creates a path and a filename of the output xls-file in the same folder as the current document&lt;BR /&gt; Path = ActiveDocument.Evaluate("left(DocumentPath(), index(DocumentPath(), '\', -1))")&lt;BR /&gt; 'Path = "C:\Team_Audit\" 'your static path if you dont want a dynamic path&lt;BR /&gt; set obj = ActiveDocument.GetSheetObject("TB01") 'the ID of the object you want to export&lt;BR /&gt;&lt;BR /&gt; 'Loop through each selection in your field&lt;BR /&gt; for i = 0 to Array1.count-1&lt;BR /&gt; f.Select Array1(i).Text 'Selects one value in your field at a time&lt;BR /&gt;&lt;BR /&gt; 'Sets the FileName to be the same as the selection in your chosen field&lt;BR /&gt; FileName = Array1(i).Text &amp;amp; ".xls"&lt;BR /&gt;&lt;BR /&gt; ' Starts Excel&lt;BR /&gt; set XLApp = CreateObject("Excel.Application")&lt;BR /&gt; ' Makes it run in background&lt;BR /&gt; XLApp.Visible = False&lt;BR /&gt; set XLDoc = XLApp.Workbooks.Add&lt;BR /&gt;&lt;BR /&gt; ' Set the cell to start in at A1&lt;BR /&gt; Set rngStart = XLDoc.Sheets(1).Range("A1")&lt;BR /&gt;&lt;BR /&gt; ' Copies the chosen object contents to clipboard&lt;BR /&gt; obj.CopyTableToClipboard true&lt;BR /&gt; ' Paste it into excel&lt;BR /&gt; XLDoc.Sheets(1).Paste()&lt;BR /&gt; ' Save the excel-file with the dynamic path and filename&lt;BR /&gt; XLDoc.SaveAs Path &amp;amp; FileName&lt;BR /&gt; ' Exits the current running Excel&lt;BR /&gt; XLApp.Quit&lt;BR /&gt;&lt;BR /&gt; next 'goes to the next value in the selection in the chosen field&lt;BR /&gt;&lt;BR /&gt;end sub&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;//Jakob Berglund&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Mar 2010 23:13:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-macro-with-dynamic-name/m-p/175854#M44088</guid>
      <dc:creator />
      <dc:date>2010-03-10T23:13:48Z</dc:date>
    </item>
    <item>
      <title>SV:Export to excel macro with dynamic name</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-macro-with-dynamic-name/m-p/175855#M44089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jakob,&lt;/P&gt;&lt;P&gt;This is exactly what I wanted and a little more as you suggested!&lt;/P&gt;&lt;P&gt;I will take advantage of the dynamic locations option you have too, tested it and it all worked fantastic!&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Peter Lawlor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Mar 2010 09:17:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-macro-with-dynamic-name/m-p/175855#M44089</guid>
      <dc:creator />
      <dc:date>2010-03-11T09:17:55Z</dc:date>
    </item>
    <item>
      <title>SV:Export to excel macro with dynamic name</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-macro-with-dynamic-name/m-p/175856#M44090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jakob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for this code it is very useful for what I am trying to do. In addition to this though I would love to be able to paste the active field into an excel cell. I have tried selecting the cell and then copying "FileName" as text but qlikview didn't like that. Do you know of a way to do this? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 17:31:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-macro-with-dynamic-name/m-p/175856#M44090</guid>
      <dc:creator />
      <dc:date>2010-05-13T17:31:23Z</dc:date>
    </item>
    <item>
      <title>SV:Export to excel macro with dynamic name</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-macro-with-dynamic-name/m-p/175857#M44091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;"&gt;Sean,&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;"&gt;Create a folder with an excel file "C:\ExcelFilePaste\ExcelPasteFile.xls".&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;"&gt;Load an inline:&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;LOAD&lt;/B&gt; * &lt;B&gt;INLINE&lt;/B&gt; [&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;Code, Number&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;a, 1&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;b, 2&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;c,3];&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;"&gt;Create a list box for the "Code" field. Select an item in the code field. Create a button that runs the code below and click the button that runs the code.&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;Sub&lt;/B&gt; SendToExcel&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;Set&lt;/B&gt; oXL=&lt;B&gt;CreateObject&lt;/B&gt;("Excel.Application")&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;set&lt;/B&gt; doc = ActiveDocument&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;set&lt;/B&gt; mySelection = doc.fields("Code").GetSelectedValues&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;for&lt;/B&gt; i = 0 to mySelection.Count -1&lt;/P&gt;&lt;P style="font-weight: bold; margin: 0in 0in 0pt; mso-layout-grid-align: none"&gt;next&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;"C:\ExcelFilePaste\ExcelPasteFile.xls"&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;set&lt;/B&gt; oWB = oXL.Workbooks.Open(f_name)&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;set&lt;/B&gt; oSH = oWB.Worksheets.Item(1)&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;"A65536"). &lt;B&gt;End&lt;/B&gt;(-4162).Offset(1,0).FormulaR1C1 = strIndex&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;Set&lt;/B&gt; oSH=&lt;B&gt;nothing&lt;/B&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;Set&lt;/B&gt; oWB=&lt;B&gt;nothing&lt;/B&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;Set&lt;/B&gt; oXL=&lt;B&gt;nothing&lt;/B&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;msgbox&lt;/B&gt;("Done")&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;End&lt;/B&gt; &lt;B&gt;Sub&lt;/B&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;Select another item in the list box and click the button again and it will add the new letter selected to the excel file just below the first on you created.&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;Hope this helps get you started.&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;Stephen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold; margin: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 19:00:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-macro-with-dynamic-name/m-p/175857#M44091</guid>
      <dc:creator />
      <dc:date>2010-05-13T19:00:58Z</dc:date>
    </item>
    <item>
      <title>SV:Export to excel macro with dynamic name</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-macro-with-dynamic-name/m-p/175858#M44092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stephen,&lt;/P&gt;&lt;P&gt;I'm not sure we are on the same page, right now I am using Jakob's code to spit out 80 or so extract files from a single table with different constraints on it. Each of those constraints has a title which right now is going into an array which will dynamically save the file as that name. All I want to add to this is have that also paste what is becoming the file name into a cell. Right now I am using a workaround in excel but I would prefer to have cleaner code and no macros running in my extracts.&lt;/P&gt;&lt;P&gt;On another note after using this code I have perhaps come across a bug, in this case it will leave the instance of Excel running in my task manager but that will be the only clue that is is running (even if I make it visable) I won't be able to see it. This only happens when I save the file, if I do not save the file then it will close the instance of excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 19:13:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-macro-with-dynamic-name/m-p/175858#M44092</guid>
      <dc:creator />
      <dc:date>2010-05-13T19:13:32Z</dc:date>
    </item>
    <item>
      <title>SV:Export to excel macro with dynamic name</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-macro-with-dynamic-name/m-p/175859#M44093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Dear All,&lt;/P&gt;&lt;P&gt;If i want to see all the selected items in a report in the print PDF Preview how can i do it&lt;/P&gt;&lt;P&gt;Please Suggest&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pranav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 12:21:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-macro-with-dynamic-name/m-p/175859#M44093</guid>
      <dc:creator />
      <dc:date>2010-05-20T12:21:20Z</dc:date>
    </item>
    <item>
      <title>SV:Re: SV:Export to excel macro with dynamic name</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-macro-with-dynamic-name/m-p/175860#M44094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To write additional information in a specific cell inside the newly created document, you may use the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;XLDoc.Sheets(1).Range("A1").Offset(x, y).Value = "CellContentHere"&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;where A1 represents the cell you want to start your selection and Offset(x, y) represents how many cells away from the start selection you want to write your content. The above sample would first choose A1 as the starting point, then move X cells down and Y cells to the right, and there write CellContentHere.&lt;/P&gt;&lt;P&gt;Of course, you may use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;XLDoc.Sheets(1).Range("A1").Offset(0, 10).Value=Array1(i).Text&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;if you want the "filename" to be written in the cell of your choice as requested. Just change the Offset to suit your needs.&lt;/P&gt;&lt;P&gt;Happy to help!&lt;/P&gt;&lt;P&gt;//Jakob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 13:57:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-macro-with-dynamic-name/m-p/175860#M44094</guid>
      <dc:creator />
      <dc:date>2010-05-20T13:57:54Z</dc:date>
    </item>
    <item>
      <title>SV:Re: SV:Export to excel macro with dynamic name</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-macro-with-dynamic-name/m-p/175861#M44095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jakob, that was just what I was looking for, this will really help me keep the 600 sheets I need to pull organized.&lt;/P&gt;&lt;P&gt;I do have one more question about your code though. I am not sure if you have noticed this issue and maybe it is just a setting that I have that needs to be changed. I have taken your code and modified it to open a specific template that then runs an excel macro to format it into the way I need to look at my numbers for printing, saves as and then quits. This is great however excel doesn't actually quit. It leaves a ghost instance in the task manager that you cannot access in any way but it draws your memory around 50Mb per instance, causing you to force quit after around 30 instances have opened or qlikview will crash due to having no available memory. Any ideas on how to fix this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 18:53:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-macro-with-dynamic-name/m-p/175861#M44095</guid>
      <dc:creator />
      <dc:date>2010-05-20T18:53:52Z</dc:date>
    </item>
    <item>
      <title>SV:Export to excel macro with dynamic name</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-macro-with-dynamic-name/m-p/175862#M44096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jacob for your Reply,&lt;/P&gt;&lt;P&gt;If i want to print all the selected items of thre reports while printing my PDF at the very bottom is it possibe....&lt;/P&gt;&lt;P&gt;Please Suggest&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pranav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 May 2010 05:24:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-macro-with-dynamic-name/m-p/175862#M44096</guid>
      <dc:creator />
      <dc:date>2010-05-21T05:24:33Z</dc:date>
    </item>
    <item>
      <title>SV:Re: SV:Re: SV:Export to excel macro with dynamic name</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-macro-with-dynamic-name/m-p/175863#M44097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again!&lt;/P&gt;&lt;P&gt;The previous code is missing the drop of instanced com-objects which should be like follows(starting from XLDoc.SaveAs so you know where to start copy-paste):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;' Save the excel-file with the dynamic path and filename&lt;BR /&gt; XLDoc.SaveAs Path &amp;amp; FileName&lt;BR /&gt; ' Closes the active document&lt;BR /&gt; XLDoc.Close&lt;BR /&gt; ' Close the instanced object references of excel&lt;BR /&gt; set rngStart = nothing&lt;BR /&gt; set XLDoc = nothing&lt;BR /&gt; ' Exits the current running Excel&lt;BR /&gt; XLApp.Quit&lt;BR /&gt; ' Closing final object reference&lt;BR /&gt; set XLApp = nothing&lt;BR /&gt;next&lt;BR /&gt;end sub&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 May 2010 11:26:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-macro-with-dynamic-name/m-p/175863#M44097</guid>
      <dc:creator />
      <dc:date>2010-05-21T11:26:28Z</dc:date>
    </item>
    <item>
      <title>SV:Re: SV:Re: SV:Export to excel macro with dynamic name</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-macro-with-dynamic-name/m-p/175864#M44098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jakob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is great. I can't thank you enough this is going to save me tons of time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 May 2010 13:45:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-macro-with-dynamic-name/m-p/175864#M44098</guid>
      <dc:creator />
      <dc:date>2010-05-21T13:45:26Z</dc:date>
    </item>
    <item>
      <title>SV:Export to excel macro with dynamic name</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-macro-with-dynamic-name/m-p/175865#M44099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am a little stuck on how to get the Active Object on an Active sheet ... the below works and but would like it to be dynamic according to what the Object the user has selected.&lt;/P&gt;&lt;P&gt;ActiveDocument.GetSheetObject("TB01")&lt;/P&gt;&lt;P&gt;I hope it might be something like ActiveDocument.ActiveSheet.ActiveObject but that does not work.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lee&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 08:53:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-macro-with-dynamic-name/m-p/175865#M44099</guid>
      <dc:creator />
      <dc:date>2010-06-03T08:53:12Z</dc:date>
    </item>
    <item>
      <title>SV:Export to excel macro with dynamic name</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-macro-with-dynamic-name/m-p/175866#M44100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lee&lt;/P&gt;&lt;P&gt;The problem here is that a sheet can have many objects active at any one time, so you are going to be looking at returning an array of information for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;SET Sht = ActiveDocument.ActiveSheet&lt;BR /&gt;OBJS = Sht.GetActiveSheetObjects.SheetObjects&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;You could then set up a loop over those objects and do what you need to do, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;for i = lbound(objs) to ubound(objs)&lt;BR style="padding-left:30px;" /&gt;objs(i).Minimize&lt;BR /&gt;next&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;You can look through the API Guide (API.QVW) to give you more of an idea on what other things you can do once you have the array available.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 09:15:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-macro-with-dynamic-name/m-p/175866#M44100</guid>
      <dc:creator />
      <dc:date>2010-06-03T09:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel macro with dynamic name</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-macro-with-dynamic-name/m-p/175867#M44101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;"I have taken your code and modified it to open a specific template that then runs an excel macro to format it into the way I need to look at my numbers for printing, saves as and then quits."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you detail how you did this? I am looking to do the exact same thing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2012 20:58:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-macro-with-dynamic-name/m-p/175867#M44101</guid>
      <dc:creator />
      <dc:date>2012-03-30T20:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: SV:Export to excel macro with dynamic name</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-macro-with-dynamic-name/m-p/1591134#M443571</link>
      <description>&lt;P&gt;What if I want to export multiple charts and save them in the same excel file?&lt;/P&gt;&lt;P&gt;I hope you can help me, thanks !!!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 15:26:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-macro-with-dynamic-name/m-p/1591134#M443571</guid>
      <dc:creator>MiguelSoto123</dc:creator>
      <dc:date>2019-06-12T15:26:39Z</dc:date>
    </item>
  </channel>
</rss>

