<?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 Create Excel Files via Macro on QlikView Server in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-Excel-Files-via-Macro-on-QlikView-Server/m-p/182376#M1328284</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anders,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your code. It also works with QlikView Desktop, but unfortunately, when I try it on AJAX Zero Footprint Client on QlikView Server, the code doesn't work. This is the whole problem. I can create and edit simple textfiles, but not excel files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code works with AJAX ZfC:&lt;/P&gt;&lt;P&gt;Sub textfile&lt;BR /&gt;&lt;BR /&gt; Set objFSO = CreateObject("Scripting.FileSystemObject")&lt;BR /&gt; Set objFile = objFSO.CreateTextFile("D:\test.txt")&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess AJAX doesn't allow Excel.Application Objects &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Mar 2011 08:40:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-16T08:40:17Z</dc:date>
    <item>
      <title>Create Excel Files via Macro on QlikView Server</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Excel-Files-via-Macro-on-QlikView-Server/m-p/182372#M1328275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was searching the forum, but couldn't find a related post to my question. I really hope you can help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the situation: The user clicks on a button. The button triggers a macro opens an excel file on our server, edits it and after that saves it into a specific folder. This works really fine with QlikView Desktop. But on our QlikView Server the macro does absolutely nothing. It never creates an Excel.Application Object nor does it save an excel file into a folder.&lt;/P&gt;&lt;P&gt;This is a short vbscript code just for testing:&lt;/P&gt;&lt;P&gt;Sub test&lt;BR /&gt;&lt;BR /&gt; Set xls = CreateObject("EXCEL.APPLICATION")&lt;BR /&gt;&lt;BR /&gt; Set wb = xls.Workbooks.Open ("D:\Mediaplanvorlagen\Mediaplan Vorlage_SollIst.xls")&lt;BR /&gt; xls.Visible = true&lt;BR /&gt;&lt;BR /&gt; xls.ActiveWorkbook.SaveAs "D:\Mediaplan.xls"&lt;BR /&gt; xls.Quit&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Excel is installed on the server. We use the QlikView server version 10.0 x64. "Allow macro execution on server" and "Allow unsafe macro execution on server" are both enabled.&lt;/P&gt;&lt;P&gt;Can anyone test the code above with some example excel-files? Or is there any reason why it doesn't work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Excel-Files-via-Macro-on-QlikView-Server/m-p/182372#M1328275</guid>
      <dc:creator />
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Create Excel Files via Macro on QlikView Server</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Excel-Files-via-Macro-on-QlikView-Server/m-p/182373#M1328278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Have you mark&lt;/P&gt;&lt;P&gt;Requested module security = System access&lt;/P&gt;&lt;P&gt;Current local security=Allow system access&lt;/P&gt;&lt;P&gt;in Edit module?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 14:38:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Excel-Files-via-Macro-on-QlikView-Server/m-p/182373#M1328278</guid>
      <dc:creator />
      <dc:date>2011-03-15T14:38:17Z</dc:date>
    </item>
    <item>
      <title>Create Excel Files via Macro on QlikView Server</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Excel-Files-via-Macro-on-QlikView-Server/m-p/182374#M1328280</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;yeah, I marked them.&lt;/P&gt;&lt;P&gt;The whole thing works when I use this code to create a simple textfile:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sub textfile&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Set objFSO = CreateObject("Scripting.FileSystemObject")&lt;BR /&gt;Set objFile = objFSO.CreateTextFile("D:\test.txt")&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use this code and click on a button, a textfile is created on the server. I really have no clue why that doesn't work with an excel object...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 14:53:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Excel-Files-via-Macro-on-QlikView-Server/m-p/182374#M1328280</guid>
      <dc:creator />
      <dc:date>2011-03-15T14:53:18Z</dc:date>
    </item>
    <item>
      <title>Create Excel Files via Macro on QlikView Server</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Excel-Files-via-Macro-on-QlikView-Server/m-p/182375#M1328282</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 have this macro that creates a new excel-document and it´s work.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anders&lt;/P&gt;&lt;P&gt;Sub SaveToExcel&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;NewFileName = "C:\QlikView\Test.xlsx"&lt;BR /&gt;set obj = ActiveDocument.GetSheetObject("CH18")&lt;BR /&gt;set XLApp = CreateObject("Excel.Application")&lt;BR /&gt;XLApp.Visible = true&lt;BR /&gt;set XLDoc = XLApp.Workbooks.Add&lt;BR /&gt;set rngStart = XLDoc.Sheets(1).Range("A1")&lt;BR /&gt;set XLSheet = XLDoc.Worksheets("Sheet1")&lt;BR /&gt;Const xlCenter = -4108&lt;BR /&gt;&lt;BR /&gt;obj.CopyTableToClipboard true&lt;BR /&gt;XLDoc.Sheets("Sheet1").Paste()&lt;BR /&gt;XLDoc.WorkSheets("Sheet1").Cells.select&lt;BR /&gt;XLDoc.WorkSheets("Sheet1").Cells.EntireRow.RowHeight = 12.75&lt;BR /&gt;XLDoc.WorkSheets("Sheet1").Cells.EntireColumn.AutoFit&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;set Selection = XLSheet.Columns("A:H")&lt;BR /&gt;With Selection&lt;BR /&gt; .VerticalAlignment = xlCenter&lt;BR /&gt; .Borders.ColorIndex = 0 'black border&lt;BR /&gt;End With&lt;BR /&gt;XLSheet.Name = "Test"&lt;BR /&gt;&lt;BR /&gt;XLDoc.SaveAs NewFileName&lt;BR /&gt;&lt;BR /&gt;XLApp.Quit&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 08:08:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Excel-Files-via-Macro-on-QlikView-Server/m-p/182375#M1328282</guid>
      <dc:creator />
      <dc:date>2011-03-16T08:08:49Z</dc:date>
    </item>
    <item>
      <title>Create Excel Files via Macro on QlikView Server</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Excel-Files-via-Macro-on-QlikView-Server/m-p/182376#M1328284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anders,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your code. It also works with QlikView Desktop, but unfortunately, when I try it on AJAX Zero Footprint Client on QlikView Server, the code doesn't work. This is the whole problem. I can create and edit simple textfiles, but not excel files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code works with AJAX ZfC:&lt;/P&gt;&lt;P&gt;Sub textfile&lt;BR /&gt;&lt;BR /&gt; Set objFSO = CreateObject("Scripting.FileSystemObject")&lt;BR /&gt; Set objFile = objFSO.CreateTextFile("D:\test.txt")&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess AJAX doesn't allow Excel.Application Objects &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 08:40:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Excel-Files-via-Macro-on-QlikView-Server/m-p/182376#M1328284</guid>
      <dc:creator />
      <dc:date>2011-03-16T08:40:17Z</dc:date>
    </item>
    <item>
      <title>Create Excel Files via Macro on QlikView Server</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Excel-Files-via-Macro-on-QlikView-Server/m-p/182377#M1328287</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 use IE Plugin.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 08:44:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Excel-Files-via-Macro-on-QlikView-Server/m-p/182377#M1328287</guid>
      <dc:creator />
      <dc:date>2011-03-16T08:44:03Z</dc:date>
    </item>
    <item>
      <title>Create Excel Files via Macro on QlikView Server</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Excel-Files-via-Macro-on-QlikView-Server/m-p/182378#M1328291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will work only in IE Plug In.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 08:52:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Excel-Files-via-Macro-on-QlikView-Server/m-p/182378#M1328291</guid>
      <dc:creator>suniljain</dc:creator>
      <dc:date>2011-03-16T08:52:28Z</dc:date>
    </item>
    <item>
      <title>Create Excel Files via Macro on QlikView Server</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Excel-Files-via-Macro-on-QlikView-Server/m-p/182379#M1328294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your help. I understood that you have limited macro functionality with the AJAX ZfC. But I found a solution!&lt;/P&gt;&lt;P&gt;If you want to export your data into a specific Excel file and Excel automatically do something with the data, you can do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your QlikView Macro export the data by writing them into a txt file with the "FileSystemObject" properties. With the "WScript.Shell" Object you then can open an Excel file. In that Excel file you have to write a macro which is automatically triggered by opening [Workbook Open event]. Then this macro has to open the txt file with the exported data, writes in into a sheet and finally you have successfully exported the data into excel. The excel-macro can now work with that and create charts, overviews, reports or anything else you want to create.&lt;/P&gt;&lt;P&gt;Hope you understood, what I tried to explain. &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2011 08:38:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Excel-Files-via-Macro-on-QlikView-Server/m-p/182379#M1328294</guid>
      <dc:creator />
      <dc:date>2011-03-18T08:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create Excel Files via Macro on QlikView Server</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Excel-Files-via-Macro-on-QlikView-Server/m-p/182380#M1328297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I worked on this same issue for ages and have settled on using the iePlugin. Works now. Actually the iePlugin makes everything look on the web look a lot more like QV desktop ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 20:56:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Excel-Files-via-Macro-on-QlikView-Server/m-p/182380#M1328297</guid>
      <dc:creator />
      <dc:date>2013-08-14T20:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create Excel Files via Macro on QlikView Server</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Excel-Files-via-Macro-on-QlikView-Server/m-p/182381#M1328300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this work with the AJAX client? Because I get the error "ActiveX component can't create object" in the VB script editor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 17:37:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Excel-Files-via-Macro-on-QlikView-Server/m-p/182381#M1328300</guid>
      <dc:creator />
      <dc:date>2016-08-04T17:37:59Z</dc:date>
    </item>
  </channel>
</rss>

