<?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: Macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro/m-p/409057#M697229</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SUB SendToExcel&lt;/P&gt;&lt;P&gt;set v = ActiveDocument.Variables("vshow")&lt;/P&gt;&lt;P&gt;strvshow = v.Getcontent.String&lt;/P&gt;&lt;P&gt;Set XLApp = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;XLApp.Visible = True&lt;/P&gt;&lt;P&gt;Set XLWorkbook = XLApp.Workbooks.Add&lt;/P&gt;&lt;P&gt;Set XLSheet = XLWorkbook.sheets("Sheet1")&lt;/P&gt;&lt;P&gt;XLSheet.Select&lt;/P&gt;&lt;P&gt;XLSheet.Range("A1").Value = strvshow&lt;/P&gt;&lt;P&gt;v.SendToExcel&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where vshow variable i used to show and hide chart but above code is not working.&lt;/P&gt;&lt;P&gt;pls help regarding to fix the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Apr 2013 21:13:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-04-01T21:13:09Z</dc:date>
    <item>
      <title>Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Macro/m-p/409054#M697226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to aexport table from Qlikview dshboard to excel with macro.&lt;/P&gt;&lt;P&gt;as i have st up chart visibility by using variable vshow and passing chart name by using button so that particular chart get visible.&lt;/P&gt;&lt;P&gt;Now want to export chart by using one subrutine and calling variable vshow .&lt;/P&gt;&lt;P&gt;i have tried but its not working,pls suggest if some one have done or any idea to do it.&lt;/P&gt;&lt;P&gt;Sub ExportExcel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET excelFile = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;excelFile.Visible = true &lt;/P&gt;&lt;P&gt;SET XLDoc = excelFile.Workbooks.Add&lt;/P&gt;&lt;P&gt;SET XLSheet1 = XLDoc.Worksheets(1)&lt;/P&gt;&lt;P&gt;ActiveDocument.GetSheetObject("$(vshow)").CopyTableToClipboard true&lt;/P&gt;&lt;P&gt;XLSheet1.Paste XLSheet1.Range("A1")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;excelFile.Visible = True&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Apr 2013 01:11:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro/m-p/409054#M697226</guid>
      <dc:creator />
      <dc:date>2013-04-01T01:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Macro/m-p/409055#M697227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you get any error message? &lt;/P&gt;&lt;P&gt;The most commom problem is related to security. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to enable unsafe macro execution to access Excel and create a new document. &lt;/P&gt;&lt;P&gt;You can press Ctrl+Shift +M to check you current security level. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also set it on the macro module (where you wrote your macro) on the left side of the screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards, &lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Apr 2013 01:51:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro/m-p/409055#M697227</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2013-04-01T01:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Macro/m-p/409056#M697228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This macro will not work unless you are using the IE Plugin client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, it looks like you are trying to use a QlikView variable $(vShow) in the macro.&amp;nbsp; You need to load the contents of the QlikView variable into a vbscript variable.&lt;/P&gt;&lt;P&gt;Here is an example from the API Guide:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set v = ActiveDocument.Variables("Variable1")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strVar = .GetContent.String&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Apr 2013 11:24:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro/m-p/409056#M697228</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2013-04-01T11:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Macro/m-p/409057#M697229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SUB SendToExcel&lt;/P&gt;&lt;P&gt;set v = ActiveDocument.Variables("vshow")&lt;/P&gt;&lt;P&gt;strvshow = v.Getcontent.String&lt;/P&gt;&lt;P&gt;Set XLApp = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;XLApp.Visible = True&lt;/P&gt;&lt;P&gt;Set XLWorkbook = XLApp.Workbooks.Add&lt;/P&gt;&lt;P&gt;Set XLSheet = XLWorkbook.sheets("Sheet1")&lt;/P&gt;&lt;P&gt;XLSheet.Select&lt;/P&gt;&lt;P&gt;XLSheet.Range("A1").Value = strvshow&lt;/P&gt;&lt;P&gt;v.SendToExcel&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where vshow variable i used to show and hide chart but above code is not working.&lt;/P&gt;&lt;P&gt;pls help regarding to fix the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Apr 2013 21:13:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro/m-p/409057#M697229</guid>
      <dc:creator />
      <dc:date>2013-04-01T21:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Macro/m-p/409058#M697230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;SUB SendToExcel&lt;/P&gt;&lt;P&gt;set v = ActiveDocument.Variables("vshow")&lt;/P&gt;&lt;P&gt;strvshow = v.Getcontent.String&lt;/P&gt;&lt;P&gt;Set XLApp = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;XLApp.Visible = True&lt;/P&gt;&lt;P&gt;Set XLWorkbook = XLApp.Workbooks.Add&lt;/P&gt;&lt;P&gt;Set XLSheet = XLWorkbook.sheets("Sheet1")&lt;/P&gt;&lt;P&gt;XLSheet.Select&lt;/P&gt;&lt;P&gt;XLSheet.Range("A1").Value = strvshow&lt;/P&gt;&lt;P&gt;v.SendToExcel&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where vshow variable i used to show and hide chart but above code is not working.&lt;/P&gt;&lt;P&gt;pls help regarding to fix the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2013 04:58:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro/m-p/409058#M697230</guid>
      <dc:creator />
      <dc:date>2013-04-02T04:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Macro/m-p/409059#M697231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you trying to print the variable value in excel sheet??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2013 05:03:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro/m-p/409059#M697231</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2013-04-02T05:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Macro/m-p/409060#M697232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am trying to export table data into excel but i want to write only one subprogram for all chart and export which is visible at that time , i have used variable to set visibility of charts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 20:39:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro/m-p/409060#M697232</guid>
      <dc:creator />
      <dc:date>2013-04-03T20:39:47Z</dc:date>
    </item>
  </channel>
</rss>

