<?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 - Write Email in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-Write-Email/m-p/219718#M72709</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This looks great and i would love to be able to use it but i get the following error message on the CreateObject line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ActiveX component can't create object: 'Outlook.Application'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know how i can resolve this ?&amp;nbsp; My macro code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUB openMail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set vOlApp = CreateObject("Outlook.Application")&lt;/P&gt;&lt;P&gt;Set vMessage = vOlApp.CreateItem(olMailItem)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'******** Auto fill out email fields ***********&lt;/P&gt;&lt;P&gt;vMessage.Subject = "QlikView Support Request..."&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;vMessage.To = "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:paul.nockolds@haymarket.com"&gt;paul.nockolds@haymarket.com&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;vMessage.CC = "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:Somebody@Somewhere.com"&gt;Somebody@Somewhere.com&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vMessage.Display&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>Thu, 02 Jun 2011 11:32:45 GMT</pubDate>
    <dc:creator>haymarketpaul</dc:creator>
    <dc:date>2011-06-02T11:32:45Z</dc:date>
    <item>
      <title>Macro - Write Email</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Write-Email/m-p/219713#M72704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Guys,&lt;/P&gt;&lt;P&gt;I need help in writing a macro. It will need to open an outlook new message and set the to and subject line. Then the user can enter data in the message and send it.&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;function openMail&lt;BR /&gt; Dim Outlook 'As New Outlook.Application&lt;BR /&gt; Set Outlook = CreateObject("Outlook.Application")&lt;/P&gt;&lt;P&gt;.To = "&lt;A href="mailto:kallcorn@us-analytics.com"&gt;kallcorn@us-analytics.com&lt;/A&gt;"&lt;BR /&gt; .Subject = "Hello"&lt;BR /&gt;&lt;BR /&gt; Set objEmail = Nothing&lt;/P&gt;&lt;P&gt;end function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jul 2010 16:48:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Write-Email/m-p/219713#M72704</guid>
      <dc:creator />
      <dc:date>2010-07-09T16:48:19Z</dc:date>
    </item>
    <item>
      <title>Macro - Write Email</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Write-Email/m-p/219714#M72705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found out what I was doing wrong here is the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUB openMail&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Set vOlApp = CreateObject("Outlook.Application")&lt;BR /&gt;Set vMessage = vOlApp.CreateItem(olMailItem)&lt;/P&gt;&lt;P&gt;vMessage.Subject = "Test"&lt;BR /&gt;vMessage.To = "&lt;A href="mailto:kallcorn@us-analytics.com"&gt;kallcorn@us-analytics.com&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;vMessage.Display&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jul 2010 17:06:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Write-Email/m-p/219714#M72705</guid>
      <dc:creator />
      <dc:date>2010-07-09T17:06:56Z</dc:date>
    </item>
    <item>
      <title>Macro - Write Email</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Write-Email/m-p/219715#M72706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Kallcorn,&lt;/P&gt;&lt;P&gt;I need the same macro solution. But I want to send the email for more than one email address. The email addresses are in the Email field. How can I modify your macro to send the email for all selected email address on the email fields.&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 06:11:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Write-Email/m-p/219715#M72706</guid>
      <dc:creator />
      <dc:date>2011-05-24T06:11:32Z</dc:date>
    </item>
    <item>
      <title>Macro - Write Email</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Write-Email/m-p/219716#M72707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Asimakin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done something similar, and here is the code. I read the values from a TableBox, but you should be able to do something similar with a Listbox&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;P&gt;MyConcatenatedField= " "&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;for i = 1 to TableBox.GetRowCount-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyConcatenatedField= MyConcatenatedField&amp;amp; TableBox.GetCell(i,1).text &amp;amp; "; "&lt;/P&gt;&lt;P&gt;end if&lt;BR /&gt;next&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 06:24:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Write-Email/m-p/219716#M72707</guid>
      <dc:creator />
      <dc:date>2011-05-24T06:24:55Z</dc:date>
    </item>
    <item>
      <title>Macro - Write Email</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Write-Email/m-p/219717#M72708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have an error message with the above code. Would you please send a sample qlikview file?&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 07:28:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Write-Email/m-p/219717#M72708</guid>
      <dc:creator />
      <dc:date>2011-05-24T07:28:02Z</dc:date>
    </item>
    <item>
      <title>Macro - Write Email</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Write-Email/m-p/219718#M72709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This looks great and i would love to be able to use it but i get the following error message on the CreateObject line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ActiveX component can't create object: 'Outlook.Application'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know how i can resolve this ?&amp;nbsp; My macro code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUB openMail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set vOlApp = CreateObject("Outlook.Application")&lt;/P&gt;&lt;P&gt;Set vMessage = vOlApp.CreateItem(olMailItem)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'******** Auto fill out email fields ***********&lt;/P&gt;&lt;P&gt;vMessage.Subject = "QlikView Support Request..."&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;vMessage.To = "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:paul.nockolds@haymarket.com"&gt;paul.nockolds@haymarket.com&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;vMessage.CC = "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:Somebody@Somewhere.com"&gt;Somebody@Somewhere.com&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vMessage.Display&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>Thu, 02 Jun 2011 11:32:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Write-Email/m-p/219718#M72709</guid>
      <dc:creator>haymarketpaul</dc:creator>
      <dc:date>2011-06-02T11:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Macro - Write Email</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Write-Email/m-p/219719#M72710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Paul,&lt;/P&gt;&lt;P&gt;This means that you don’t have MS Outlook installed on your PC. You also need to select macro settings as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="cid:image001.jpg@01CC2134.9951E980"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2011 11:52:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Write-Email/m-p/219719#M72710</guid>
      <dc:creator />
      <dc:date>2011-06-02T11:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Macro - Write Email</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Write-Email/m-p/219720#M72711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've definitely got Outlook installed (and open) on my PC and have changed the Security settings as per your image file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It now works when i click the Test button inside the Edit Module window but nothing happens when i click the button on my dashboard that the RunMacro action is attached to ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2011 13:06:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Write-Email/m-p/219720#M72711</guid>
      <dc:creator>haymarketpaul</dc:creator>
      <dc:date>2011-06-02T13:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Macro - Write Email</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Write-Email/m-p/219721#M72712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;If you can parse the macro successfully you should see the macro name on the left side of the screen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="cid:image001.jpg@01CC2143.569320F0"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then please make sure that you set your button settings as below:&lt;/P&gt;&lt;P&gt;&lt;A href="cid:image002.png@01CC2143.569320F0"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2011 13:37:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Write-Email/m-p/219721#M72712</guid>
      <dc:creator />
      <dc:date>2011-06-02T13:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Macro - Write Email</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Write-Email/m-p/219722#M72713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brilliant thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had the Macro Name in the Button Properties window different to the subroutine name in the edit module window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It now works perfectly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2011 13:41:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Write-Email/m-p/219722#M72713</guid>
      <dc:creator>haymarketpaul</dc:creator>
      <dc:date>2011-06-02T13:41:58Z</dc:date>
    </item>
  </channel>
</rss>

