<?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: Re: Help in Macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-in-Macro/m-p/592527#M1110287</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Hi Ravi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Thanks for your comment.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Can you give the steps for &lt;SPAN style="color: #3d3d3d;"&gt;sheet event OnOpen&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Tom&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Mar 2014 09:44:43 GMT</pubDate>
    <dc:creator>thomas_skariah</dc:creator>
    <dc:date>2014-03-19T09:44:43Z</dc:date>
    <item>
      <title>Help in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Help-in-Macro/m-p/592524#M1110284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;Hi All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;I have a qlikview application which export certain charts (not image)&amp;nbsp; to excel &lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;in different sheets &lt;/SPAN&gt;through button (i.e creating a new excel sheet to a specified location), now i have put a macro inside the stored excel file and execute the macro from qlikview.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;Can anyone suggest how to put the macro inside the excel file exported from Qlikview and how to run that macro from qlikview.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;or how to export those charts to an existing excel file (In which it will delete the previous sheet or value and create the new sheets ) where the macro is already stored.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;Tom&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 07:19:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-in-Macro/m-p/592524#M1110284</guid>
      <dc:creator>thomas_skariah</dc:creator>
      <dc:date>2014-03-19T07:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Help-in-Macro/m-p/592525#M1110285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not quite sure I follow, however you have the external macro in a batch script, then call that from an Action command within QV - ie. Add Action/External/Open URL (URL to the batch script).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 07:34:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-in-Macro/m-p/592525#M1110285</guid>
      <dc:creator />
      <dc:date>2014-03-19T07:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Help-in-Macro/m-p/592526#M1110286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write your excel macro code inside a sheet event OnOpen.So it will execute if any one opens that excel file.&lt;/P&gt;&lt;P&gt;Now from qlikview side we can make it open,save and close automatically using vbscript/macro through any trigger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub ExecuteExcel&lt;/P&gt;&lt;P&gt;Dim objXLApp, objXLWb, objXLWs&lt;/P&gt;&lt;P&gt;Set objXLApp = CreateObject("Excel.Application")&lt;BR /&gt;Set objXLWb = objXLApp.Workbooks.Open("E:\Docs\Invoice.csv")&lt;/P&gt;&lt;P&gt;objXLWb.Save&lt;BR /&gt;objXLWb.Close (False)&lt;/P&gt;&lt;P&gt;Set objXLWs = Nothing&amp;nbsp;&amp;nbsp; &lt;BR /&gt;Set objXLWb = Nothing&lt;/P&gt;&lt;P&gt;objXLApp.Quit&lt;BR /&gt;Set objXLApp = Nothing &lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 08:40:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-in-Macro/m-p/592526#M1110286</guid>
      <dc:creator />
      <dc:date>2014-03-19T08:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Help in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Help-in-Macro/m-p/592527#M1110287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Hi Ravi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Thanks for your comment.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Can you give the steps for &lt;SPAN style="color: #3d3d3d;"&gt;sheet event OnOpen&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Tom&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 09:44:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-in-Macro/m-p/592527#M1110287</guid>
      <dc:creator>thomas_skariah</dc:creator>
      <dc:date>2014-03-19T09:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Help in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Help-in-Macro/m-p/592528#M1110288</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;Please look at this example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way to automatically run a macro when you open a workbook is to write a VBA procedure in the &lt;STRONG class="bterm"&gt;Open&lt;/STRONG&gt; event of the workbook by using the Visual Basic Editor. The &lt;STRONG class="bterm"&gt;Open&lt;/STRONG&gt; event is a built-in workbook event that runs its macro code each time you open the workbook.&lt;/P&gt;&lt;P&gt;The following simple example uses the &lt;STRONG class="bterm"&gt;Open&lt;/STRONG&gt; event to run a macro when you open the workbook.&lt;/P&gt;&lt;OL class="cntIndent36" style="list-style-type: decimal;"&gt;&lt;LI&gt;Save and close all open workbooks.&lt;/LI&gt;&lt;LI&gt;Open the workbook you want add the macro to, or create a new workbook.&lt;/LI&gt;&lt;LI&gt;On the &lt;STRONG class="ui"&gt;Tools&lt;/STRONG&gt; menu, point to &lt;STRONG class="bterm"&gt;Macro&lt;/STRONG&gt;, and then click &lt;STRONG class="bterm"&gt;Visual Basic Editor&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;In the Project Explorer window, right-click the &lt;STRONG class="bterm"&gt;ThisWorkbook&lt;/STRONG&gt; object, and then click &lt;STRONG class="bterm"&gt;View Code&lt;/STRONG&gt; on the shortcut menu.&lt;/LI&gt;&lt;LI&gt;In the Object list above the Code window, select &lt;STRONG class="ui"&gt;Workbook&lt;/STRONG&gt;. This will automatically create an empty procedure for the &lt;STRONG class="bterm"&gt;Open&lt;/STRONG&gt; event like this: &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Private Sub Workbook_Open() End Sub&amp;nbsp; &lt;/P&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;OL class="cntIndent36" start="6" style="list-style-type: decimal;"&gt;&lt;LI&gt;Add the following lines of code to the procedure: &lt;/LI&gt;&lt;/OL&gt;&lt;PRE class="jive-pre"&gt;Private Sub Workbook_Open()&amp;nbsp; MsgBox Date&amp;nbsp; Worksheets("Sheet1").Range("A1").Value = Date&amp;nbsp; End Sub&amp;nbsp; &lt;/PRE&gt;&lt;OL class="cntIndent36" start="7" style="list-style-type: decimal;"&gt;&lt;LI&gt;Switch to Microsoft Excel and save the workbook.&lt;/LI&gt;&lt;LI&gt;Close and reopen the workbook. When you open the file again, Excel runs the Workbook_Open procedure, which displays today's date in a message box.&lt;/LI&gt;&lt;LI&gt;Click &lt;STRONG class="bterm"&gt;OK&lt;/STRONG&gt; in the message box.&lt;/LI&gt;&lt;LI&gt;Note that cell A1 on Sheet1 also contains the date as a result of the Workbook_Open procedure.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 09:59:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-in-Macro/m-p/592528#M1110288</guid>
      <dc:creator />
      <dc:date>2014-03-19T09:59:23Z</dc:date>
    </item>
  </channel>
</rss>

