<?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: How to call Visual basic MACRO code in ABAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-visual-basic-macro-code-in-abap/m-p/5889672#M1326207</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;STRONG&gt;How to do this can anyone provide me the logic for this....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'm sorry if i could not able to give you exact logic, but reading [this stuff |http://www.abapprogramming.net/2008/02/r3-rfc-from-ms-office-via-visual-basic.html]might worth full enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jul 2009 08:56:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-17T08:56:52Z</dc:date>
    <item>
      <title>How to call Visual basic MACRO code in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-visual-basic-macro-code-in-abap/m-p/5889671#M1326206</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;&lt;STRONG&gt;I created one MACRO in Microsoft office and now i want to call this macro in my ABAP program.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How to do this can anyone provide me the logic for this....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2009 08:39:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-visual-basic-macro-code-in-abap/m-p/5889671#M1326206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-17T08:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to call Visual basic MACRO code in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-visual-basic-macro-code-in-abap/m-p/5889672#M1326207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;STRONG&gt;How to do this can anyone provide me the logic for this....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'm sorry if i could not able to give you exact logic, but reading [this stuff |http://www.abapprogramming.net/2008/02/r3-rfc-from-ms-office-via-visual-basic.html]might worth full enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2009 08:56:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-visual-basic-macro-code-in-abap/m-p/5889672#M1326207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-17T08:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to call Visual basic MACRO code in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-visual-basic-macro-code-in-abap/m-p/5889673#M1326208</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;use this method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This word template has the Macro that will Run when the document is opened using method: cl_gui_frontend_services=&amp;gt;execute&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2009 09:37:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-visual-basic-macro-code-in-abap/m-p/5889673#M1326208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-17T09:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to call Visual basic MACRO code in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-visual-basic-macro-code-in-abap/m-p/5889674#M1326209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Milan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help but can u explain more clearly how to use this...method&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2009 09:47:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-visual-basic-macro-code-in-abap/m-p/5889674#M1326209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-17T09:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to call Visual basic MACRO code in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-visual-basic-macro-code-in-abap/m-p/5889675#M1326210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What Office application/document has the macro?  What the other poster was referring to is that you can open any type of Office document, E-mail editor, PDF document, simply by executing the filename or appropriate shell command.  By opening the Office document that has the embedded macro, you would trigger that macro to execute.  Is that what you need?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a simple example (with a hard-coded filename):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;EXECUTE
  EXPORTING
    DOCUMENT               = 'C:\temp\mydoc.doc'
  EXCEPTIONS
    CNTL_ERROR             = 1
    ERROR_NO_GUI           = 2
    BAD_PARAMETER          = 3
    FILE_NOT_FOUND         = 4
    PATH_NOT_FOUND         = 5
    FILE_EXTENSION_UNKNOWN = 6
    ERROR_EXECUTE_FAILED   = 7
    SYNCHRONOUS_FAILED     = 8
    NOT_SUPPORTED_BY_GUI   = 9
    OTHERS                 = 10.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I mentioned, this is also useful for triggering other applications, such as your resident e-mail editor, based on a click of an e-mail address in a GUI screen:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;EXECUTE
    EXPORTING
      DOCUMENT               = 'mailto:(put address here)'
    EXCEPTIONS
      CNTL_ERROR             = 1
      ERROR_NO_GUI           = 2
      BAD_PARAMETER          = 3
      FILE_NOT_FOUND         = 4
      PATH_NOT_FOUND         = 5
      FILE_EXTENSION_UNKNOWN = 6
      ERROR_EXECUTE_FAILED   = 7
      SYNCHRONOUS_FAILED     = 8
      NOT_SUPPORTED_BY_GUI   = 9
      OTHERS                 = 10.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2009 14:31:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-visual-basic-macro-code-in-abap/m-p/5889675#M1326210</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2009-07-17T14:31:14Z</dc:date>
    </item>
  </channel>
</rss>

