<?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: Running excel macro and Sql statements in Blueprism in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Running-excel-macro-and-Sql-statements-in-Blueprism/m-p/96381#M44667</link>
    <description>Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/2114"&gt;@mgagarin1&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;1) For running a macro, please use "&lt;STRONG&gt;Run Macro&lt;/STRONG&gt;" action of &lt;STRONG&gt;MS Excel VBO and provide the macro name.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35035.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35094iBBBF2F4C85C448DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="35035.png" alt="35035.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/STRONG&gt;2) For executing a SQL query, please use "&lt;STRONG&gt;Data-SQL Server&lt;/STRONG&gt;" VBO. First, you need to set a connection using &lt;STRONG&gt;Set Connection&lt;/STRONG&gt; action and providing the below details:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35036.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35100iDC459AC6C7D60E2B/image-size/large?v=v2&amp;amp;px=999" role="button" title="35036.png" alt="35036.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Post that​ use "&lt;STRONG&gt;Execute&lt;/STRONG&gt;" action of same object to execute any query.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35037.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35096i9AE0B0BDC319B361/image-size/large?v=v2&amp;amp;px=999" role="button" title="35037.png" alt="35037.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Thu, 05 Aug 2021 20:15:11 GMT</pubDate>
    <dc:creator>ritansh.jatwani</dc:creator>
    <dc:date>2021-08-05T20:15:11Z</dc:date>
    <item>
      <title>Running excel macro and Sql statements in Blueprism</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Running-excel-macro-and-Sql-statements-in-Blueprism/m-p/96379#M44665</link>
      <description>Hello,&lt;BR /&gt;I would like to gather steps on how to run below in BP&lt;BR /&gt;1) Excel macro&lt;BR /&gt;2)&amp;nbsp; an SQL&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;User doing manual update in one of our application and either via macro or sql can be executed thru BP. &lt;BR /&gt;I will think this is doable but I dont know how to. Can someone provide how to?&lt;BR /&gt;&lt;BR /&gt;Appreciate it very much.&lt;BR /&gt;Marilyn Gagarin&lt;BR /&gt;United Rentals, Inc&lt;BR /&gt;CT/USA</description>
      <pubDate>Wed, 04 Aug 2021 16:15:38 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Running-excel-macro-and-Sql-statements-in-Blueprism/m-p/96379#M44665</guid>
      <dc:creator>mgagarin1</dc:creator>
      <dc:date>2021-08-04T16:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Running excel macro and Sql statements in Blueprism</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Running-excel-macro-and-Sql-statements-in-Blueprism/m-p/96380#M44666</link>
      <description>You can run an excel macro using the below action, just you need to provide the Instance and the exact macro name that is present inside the excel workbook.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35034.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35099i1B807E5F61132265/image-size/large?v=v2&amp;amp;px=999" role="button" title="35034.png" alt="35034.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 05 Aug 2021 06:58:53 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Running-excel-macro-and-Sql-statements-in-Blueprism/m-p/96380#M44666</guid>
      <dc:creator>krishna.kodimurali9</dc:creator>
      <dc:date>2021-08-05T06:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Running excel macro and Sql statements in Blueprism</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Running-excel-macro-and-Sql-statements-in-Blueprism/m-p/96381#M44667</link>
      <description>Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/2114"&gt;@mgagarin1&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;1) For running a macro, please use "&lt;STRONG&gt;Run Macro&lt;/STRONG&gt;" action of &lt;STRONG&gt;MS Excel VBO and provide the macro name.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35035.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35094iBBBF2F4C85C448DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="35035.png" alt="35035.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/STRONG&gt;2) For executing a SQL query, please use "&lt;STRONG&gt;Data-SQL Server&lt;/STRONG&gt;" VBO. First, you need to set a connection using &lt;STRONG&gt;Set Connection&lt;/STRONG&gt; action and providing the below details:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35036.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35100iDC459AC6C7D60E2B/image-size/large?v=v2&amp;amp;px=999" role="button" title="35036.png" alt="35036.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Post that​ use "&lt;STRONG&gt;Execute&lt;/STRONG&gt;" action of same object to execute any query.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35037.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35096i9AE0B0BDC319B361/image-size/large?v=v2&amp;amp;px=999" role="button" title="35037.png" alt="35037.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 05 Aug 2021 20:15:11 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Running-excel-macro-and-Sql-statements-in-Blueprism/m-p/96381#M44667</guid>
      <dc:creator>ritansh.jatwani</dc:creator>
      <dc:date>2021-08-05T20:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Running excel macro and Sql statements in Blueprism</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Running-excel-macro-and-Sql-statements-in-Blueprism/m-p/96382#M44668</link>
      <description>Thank you Murali and Ritansh for information.&amp;nbsp; The excel .xlsm file contains 4 macros, see below. Do I have to specify all of them under Macro name?&amp;nbsp; And also, it has a commandbutton so now I am thinking if this Run Macro will handle this?&amp;nbsp; My plan is to run the macro via BP instead of user running it manually.&lt;BR /&gt;&amp;nbsp;I might be heading in a wrong direction so any input/advice is greatly appreciated.&lt;BR /&gt;Thanks again.&lt;BR /&gt;Marilyn&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35038.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35101i241F02D95C4FFECE/image-size/large?v=v2&amp;amp;px=999" role="button" title="35038.png" alt="35038.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35039.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35102iD7ACE0A5B395684F/image-size/large?v=v2&amp;amp;px=999" role="button" title="35039.png" alt="35039.png" /&gt;&lt;/span&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Aug 2021 16:26:19 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Running-excel-macro-and-Sql-statements-in-Blueprism/m-p/96382#M44668</guid>
      <dc:creator>mgagarin1</dc:creator>
      <dc:date>2021-08-10T16:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Running excel macro and Sql statements in Blueprism</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Running-excel-macro-and-Sql-statements-in-Blueprism/m-p/96383#M44669</link>
      <description>Hi Marilyn,&lt;BR /&gt;&lt;BR /&gt;I have executed Excel macros exactly as you picture below where the business unit has added a button on the spreadsheet itself.&amp;nbsp; The Macro "button" is really more for end users to simplify macro execution. The bot will reference the macro by name as Murali and Ritansh described. If you need to run the four macros sequentially, you would have 4 "run macro" actions in your process, calling each macro individually and in the proper order.&amp;nbsp; Alternatively, if you want to use the button, you can create a custom object to interface with it.&amp;nbsp; I don't know if the button element will be spy-able directly as a Win32 element- you might need to use Surface Automation.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;Please be advised, however, that if the macro execution fails and the VB debugger pop up is displayed, the bot does not handle that well and will just wait until someone manually closes the pop up. You might consider also a custom object to interface with that window (I've had that happen, too).&amp;nbsp; It's not difficult to build, but it is something to keep in mind.&lt;BR /&gt;&lt;BR /&gt;I hope this helps.</description>
      <pubDate>Wed, 11 Aug 2021 12:24:53 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Running-excel-macro-and-Sql-statements-in-Blueprism/m-p/96383#M44669</guid>
      <dc:creator>diane.sanzone</dc:creator>
      <dc:date>2021-08-11T12:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Running excel macro and Sql statements in Blueprism</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Running-excel-macro-and-Sql-statements-in-Blueprism/m-p/96384#M44670</link>
      <description>As rightly said you should &lt;SPAN&gt;call the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Run Macro&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;action from the MS Excel vbo&lt;/SPAN&gt; to achieve it through Bp . T&lt;SPAN&gt;o deal with multiple&amp;nbsp;files create a fresh excel file with extension .xlsm and write your macro code and run it from Bp. Also if your macro is constant you can create a new action in MS Excel VBO for the same.&lt;BR /&gt;For sql queries use Data - SQL VBO.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;</description>
      <pubDate>Fri, 03 Sep 2021 05:20:23 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Running-excel-macro-and-Sql-statements-in-Blueprism/m-p/96384#M44670</guid>
      <dc:creator>EVIPUTI</dc:creator>
      <dc:date>2021-09-03T05:20:23Z</dc:date>
    </item>
  </channel>
</rss>

