<?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 Problems with Macro Word in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problems-with-Macro-Word/m-p/1643875#M594536</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi, I have a macro that exports images and texts to a template generated in ms word. Until a while ago it worked without problems, but it began to fail. Some instructions&amp;nbsp; are not executed correctly, particularly "appWord.Selection.MoveDown wdLine, 85" since it does not advance the indicated lines (85) but a smaller amount of lines. This instruction is in other parts of the code and works perfect. &lt;/SPAN&gt;&lt;SPAN&gt;Attached part of the code that does not work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Dist_Traf_Entrada_Tit1=ActiveDocument.Variables("Dist_Traf_Entrada_Tit1").GetContent.String&lt;BR /&gt;ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt;appWord.Selection.MoveDown wdLine, 85&lt;BR /&gt;appWord.Selection.EndKey&lt;BR /&gt;appWord.Selection.TypeText Dist_Traf_Entrada_Tit1&lt;BR /&gt;ActiveDocument.GetApplication.Sleep 500&lt;/P&gt;&lt;P&gt;appWord.Selection.MoveDown wdLine, 2&lt;BR /&gt;appWord.Selection.EndKey&lt;BR /&gt;ActiveDocument.GetSheetObject("CH123").CopyBitmapToClipboard&lt;BR /&gt;ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt;appWord.Application.Selection.Paste&lt;BR /&gt;ActiveDocument.GetApplication.Sleep 500&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anyone who has any experience about it?, &lt;/SPAN&gt;&lt;SPAN&gt;Sorry for the language but I use google translate.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="oSioSc"&gt;&lt;DIV&gt;&lt;DIV class="g9WsWb"&gt;&lt;DIV class="tw-ta-container tw-nfl"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Sat, 16 Nov 2024 19:44:12 GMT</pubDate>
    <dc:creator>PEyzaguirre</dc:creator>
    <dc:date>2024-11-16T19:44:12Z</dc:date>
    <item>
      <title>Problems with Macro Word</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Macro-Word/m-p/1643875#M594536</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi, I have a macro that exports images and texts to a template generated in ms word. Until a while ago it worked without problems, but it began to fail. Some instructions&amp;nbsp; are not executed correctly, particularly "appWord.Selection.MoveDown wdLine, 85" since it does not advance the indicated lines (85) but a smaller amount of lines. This instruction is in other parts of the code and works perfect. &lt;/SPAN&gt;&lt;SPAN&gt;Attached part of the code that does not work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Dist_Traf_Entrada_Tit1=ActiveDocument.Variables("Dist_Traf_Entrada_Tit1").GetContent.String&lt;BR /&gt;ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt;appWord.Selection.MoveDown wdLine, 85&lt;BR /&gt;appWord.Selection.EndKey&lt;BR /&gt;appWord.Selection.TypeText Dist_Traf_Entrada_Tit1&lt;BR /&gt;ActiveDocument.GetApplication.Sleep 500&lt;/P&gt;&lt;P&gt;appWord.Selection.MoveDown wdLine, 2&lt;BR /&gt;appWord.Selection.EndKey&lt;BR /&gt;ActiveDocument.GetSheetObject("CH123").CopyBitmapToClipboard&lt;BR /&gt;ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt;appWord.Application.Selection.Paste&lt;BR /&gt;ActiveDocument.GetApplication.Sleep 500&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anyone who has any experience about it?, &lt;/SPAN&gt;&lt;SPAN&gt;Sorry for the language but I use google translate.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="oSioSc"&gt;&lt;DIV&gt;&lt;DIV class="g9WsWb"&gt;&lt;DIV class="tw-ta-container tw-nfl"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:44:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Macro-Word/m-p/1643875#M594536</guid>
      <dc:creator>PEyzaguirre</dc:creator>
      <dc:date>2024-11-16T19:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Macro Word</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Macro-Word/m-p/1643957#M594537</link>
      <description>&lt;P&gt;vbscript doesn't know what wdline is. Try putting a 5 in place of wdline&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/office/vba/api/word.wdunits" target="_blank"&gt;https://docs.microsoft.com/en-us/office/vba/api/word.wdunits&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 19:51:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Macro-Word/m-p/1643957#M594537</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2019-11-06T19:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Macro Word</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Macro-Word/m-p/1645331#M594538</link>
      <description>&lt;DIV class="QmZWSe"&gt;&lt;DIV class="DHcWmd"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="oSioSc"&gt;&lt;DIV&gt;&lt;DIV class="g9WsWb"&gt;&lt;DIV class="tw-ta-container tw-nfl"&gt;&lt;PRE&gt;&lt;SPAN&gt;Hi, sorry for the delay. wdline is a previously defined constant, just with value 5&lt;/SPAN&gt;.&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 Nov 2019 13:10:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Macro-Word/m-p/1645331#M594538</guid>
      <dc:creator>PEyzaguirre</dc:creator>
      <dc:date>2019-11-11T13:10:11Z</dc:date>
    </item>
  </channel>
</rss>

