<?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: My Marco with VB is not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/While-running-my-Marco-using-VB-it-throws-an-error-in-path-line/m-p/1245833#M856582</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this one is helpful to get the logic and syntax right: &lt;A href="https://community.qlik.com/message/716549"&gt;Re: Macro to paste Text Object in Word&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Feb 2017 18:05:15 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2017-02-09T18:05:15Z</dc:date>
    <item>
      <title>While running my Marco using VB, it throws an error in path line.</title>
      <link>https://community.qlik.com/t5/QlikView/While-running-my-Marco-using-VB-it-throws-an-error-in-path-line/m-p/1245831#M856580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created macro for one button in excel to generate a template which is stored in word document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As highlighted in red color, I am getting error on the path line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please help me on this to fix&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Private Sub CommandButton1_Click()&lt;/P&gt;&lt;P&gt;Dim wordapp As Object&lt;/P&gt;&lt;P&gt;Dim worddoc As Object&lt;/P&gt;&lt;P&gt;Set wordapp = CreateObject("word.application")&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;Set worddoc = wordapp.Documents.Open("Desktop\Macro_file")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;h = wordapp.ActiveDocument.Content.Text&lt;/P&gt;&lt;P&gt;a = InStr(1, h, "Sample Template 2")&lt;/P&gt;&lt;P&gt;b = Left(h, a - 1)&lt;/P&gt;&lt;P&gt;Worksheets("sheet2").Range("a1").Value = b&lt;/P&gt;&lt;P&gt;TextBox1.Text = b&lt;/P&gt;&lt;P&gt;Worksheets("sheet2").Range("a1").Copy&lt;/P&gt;&lt;P&gt;Set wordapp = Nothing&lt;/P&gt;&lt;P&gt;Set worddoc = 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;Ranjith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/While-running-my-Marco-using-VB-it-throws-an-error-in-path-line/m-p/1245831#M856580</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: My Marco with VB is not working</title>
      <link>https://community.qlik.com/t5/QlikView/While-running-my-Marco-using-VB-it-throws-an-error-in-path-line/m-p/1245832#M856581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Qlikview you need to write a macro in vbscript, not Visual Basic or Visual Basic for Applications.&lt;/P&gt;&lt;P&gt;And you need to make sure that the security settings in the module allow the creation of objects using the CreateObject function. You'll probably have to set &lt;EM&gt;Requested Module Security&lt;/EM&gt; to System Access and &lt;EM&gt;Current Local Security&lt;/EM&gt; to Allow System Access.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 17:33:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/While-running-my-Marco-using-VB-it-throws-an-error-in-path-line/m-p/1245832#M856581</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2017-02-09T17:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: My Marco with VB is not working</title>
      <link>https://community.qlik.com/t5/QlikView/While-running-my-Marco-using-VB-it-throws-an-error-in-path-line/m-p/1245833#M856582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this one is helpful to get the logic and syntax right: &lt;A href="https://community.qlik.com/message/716549"&gt;Re: Macro to paste Text Object in Word&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 18:05:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/While-running-my-Marco-using-VB-it-throws-an-error-in-path-line/m-p/1245833#M856582</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-02-09T18:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: My Marco with VB is not working</title>
      <link>https://community.qlik.com/t5/QlikView/While-running-my-Marco-using-VB-it-throws-an-error-in-path-line/m-p/1245834#M856583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please provide me a exact code on mine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ranjith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 07:12:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/While-running-my-Marco-using-VB-it-throws-an-error-in-path-line/m-p/1245834#M856583</guid>
      <dc:creator />
      <dc:date>2017-02-10T07:12:40Z</dc:date>
    </item>
  </channel>
</rss>

