<?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 Macro Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-Script/m-p/756109#M666749</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; My Macro Script were stops here myMessage.BodyFormet=2&amp;nbsp; is there any error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub SendMail&lt;/P&gt;&lt;P&gt;Set myApp = CreateObject ("Outlook.Application")&lt;/P&gt;&lt;P&gt;Set myMessage = myApp.CreateItem(olMailItem)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN style="color: #ff0000; text-decoration: underline;"&gt;myMessage.BodyFormat = 2&lt;/SPAN&gt;&lt;/SPAN&gt; '&lt;/SPAN&gt;Outlook.OlBodyFormat.olFormatRichText&lt;/P&gt;&lt;P&gt;'Supplier = ActiveDocument.Variables("SelectedSupplier").GetContent.String&lt;/P&gt;&lt;P&gt;myMessage.Subject = "Pending Call status Analysis" 'Supplier &amp;amp; " / Maksukehotus"&lt;/P&gt;&lt;P&gt;'call GetPossibleValues ("E-mail 1","strTo",",")&lt;/P&gt;&lt;P&gt;strTo = ActiveDocument.Variables("ToEmails").GetContent.String&lt;/P&gt;&lt;P&gt;myMessage.To = strTo&lt;/P&gt;&lt;P&gt;Set myInspector = myMessage.GetInspector 'this inserts signature to e-mail&lt;/P&gt;&lt;P&gt;Set myDoc = myInspector.WordEditor&lt;/P&gt;&lt;P&gt;Set var26 = ActiveDocument.Variables("vFilePath")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myMessage.Attachments.Add var26.GetContent.String &lt;/P&gt;&lt;P&gt;ActiveDocument.GetSheetObject("TX3983").CopyTextToClipboard&lt;/P&gt;&lt;P&gt;myText = ActiveDocument.GetSheetObject("TX3983").GetText 'this is needed to calculate the lenght of the iserted text to put the next object after it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myDoc.Range(0,0).Paste 'This pastes at the begining of the message body&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.GetSheetObject("CH906").CopyTableToClipboard true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myDoc.Range(len(myText),len(myText)).Paste 'Pastes after the previous text 'myDoc.Range(10,10).Paste &lt;/P&gt;&lt;P&gt;' myDoc.Range(myDoc.Characters.Count-1, myDoc.Characters.Count).Paste 'Pastes at the end of the message body&lt;/P&gt;&lt;P&gt;' myMessage.GetInspector.WordEditor.Range.Paste 'Replaces the entire message body with clipboard content&lt;/P&gt;&lt;P&gt;' myInspector.WordEditor.Content.InsertAfter chr(13) 'inserts an empty string at the end of the message body content&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myMessage.Display&lt;/P&gt;&lt;P&gt;myMessage.Send&lt;/P&gt;&lt;P&gt;Set myMessage = Nothing &lt;/P&gt;&lt;P&gt;Set myApp = Nothing&lt;/P&gt;&lt;P&gt;Set myInspector = Nothing&lt;/P&gt;&lt;P&gt;Set myDoc = Nothing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Finally:&lt;/P&gt;&lt;P&gt;'OlSecurityManager.DisableOOMWarnings = False&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>Wed, 17 Dec 2014 20:00:40 GMT</pubDate>
    <dc:creator>khasimvali85</dc:creator>
    <dc:date>2014-12-17T20:00:40Z</dc:date>
    <item>
      <title>Macro Script</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Script/m-p/756109#M666749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; My Macro Script were stops here myMessage.BodyFormet=2&amp;nbsp; is there any error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub SendMail&lt;/P&gt;&lt;P&gt;Set myApp = CreateObject ("Outlook.Application")&lt;/P&gt;&lt;P&gt;Set myMessage = myApp.CreateItem(olMailItem)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN style="color: #ff0000; text-decoration: underline;"&gt;myMessage.BodyFormat = 2&lt;/SPAN&gt;&lt;/SPAN&gt; '&lt;/SPAN&gt;Outlook.OlBodyFormat.olFormatRichText&lt;/P&gt;&lt;P&gt;'Supplier = ActiveDocument.Variables("SelectedSupplier").GetContent.String&lt;/P&gt;&lt;P&gt;myMessage.Subject = "Pending Call status Analysis" 'Supplier &amp;amp; " / Maksukehotus"&lt;/P&gt;&lt;P&gt;'call GetPossibleValues ("E-mail 1","strTo",",")&lt;/P&gt;&lt;P&gt;strTo = ActiveDocument.Variables("ToEmails").GetContent.String&lt;/P&gt;&lt;P&gt;myMessage.To = strTo&lt;/P&gt;&lt;P&gt;Set myInspector = myMessage.GetInspector 'this inserts signature to e-mail&lt;/P&gt;&lt;P&gt;Set myDoc = myInspector.WordEditor&lt;/P&gt;&lt;P&gt;Set var26 = ActiveDocument.Variables("vFilePath")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myMessage.Attachments.Add var26.GetContent.String &lt;/P&gt;&lt;P&gt;ActiveDocument.GetSheetObject("TX3983").CopyTextToClipboard&lt;/P&gt;&lt;P&gt;myText = ActiveDocument.GetSheetObject("TX3983").GetText 'this is needed to calculate the lenght of the iserted text to put the next object after it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myDoc.Range(0,0).Paste 'This pastes at the begining of the message body&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.GetSheetObject("CH906").CopyTableToClipboard true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myDoc.Range(len(myText),len(myText)).Paste 'Pastes after the previous text 'myDoc.Range(10,10).Paste &lt;/P&gt;&lt;P&gt;' myDoc.Range(myDoc.Characters.Count-1, myDoc.Characters.Count).Paste 'Pastes at the end of the message body&lt;/P&gt;&lt;P&gt;' myMessage.GetInspector.WordEditor.Range.Paste 'Replaces the entire message body with clipboard content&lt;/P&gt;&lt;P&gt;' myInspector.WordEditor.Content.InsertAfter chr(13) 'inserts an empty string at the end of the message body content&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myMessage.Display&lt;/P&gt;&lt;P&gt;myMessage.Send&lt;/P&gt;&lt;P&gt;Set myMessage = Nothing &lt;/P&gt;&lt;P&gt;Set myApp = Nothing&lt;/P&gt;&lt;P&gt;Set myInspector = Nothing&lt;/P&gt;&lt;P&gt;Set myDoc = Nothing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Finally:&lt;/P&gt;&lt;P&gt;'OlSecurityManager.DisableOOMWarnings = False&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>Wed, 17 Dec 2014 20:00:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Script/m-p/756109#M666749</guid>
      <dc:creator>khasimvali85</dc:creator>
      <dc:date>2014-12-17T20:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Script</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Script/m-p/756110#M666750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used your macro and changed Requested Module Security to "System Access" and Current Local Security to "Allow System Access", it is working fine ... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 05:52:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Script/m-p/756110#M666750</guid>
      <dc:creator />
      <dc:date>2014-12-18T05:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Script</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Script/m-p/756111#M666751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi try the attached Qv application&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Harsha &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 05:59:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Script/m-p/756111#M666751</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-18T05:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Script</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Script/m-p/756112#M666752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nagaraj,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for reply&lt;/P&gt;&lt;P&gt;already I have changed System Access and Allow System Access but not run in my application,&lt;/P&gt;&lt;P&gt;the macro stops at &lt;SPAN style="color: #ff0000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-decoration: underline;"&gt;myMessage.BodyFormat = 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;khasim. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 06:00:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Script/m-p/756112#M666752</guid>
      <dc:creator>khasimvali85</dc:creator>
      <dc:date>2014-12-18T06:00:31Z</dc:date>
    </item>
  </channel>
</rss>

