<?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: VBA Macro in Code stage in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/VBA-Macro-in-Code-stage/m-p/87983#M38616</link>
    <description>&lt;SPAN style="color: #0000ff;"&gt;Can I write VBA code directly in BP code stage?&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;Mostly, sans some syntax differences. The MS Excel VBO object makes use of the Excel interop, which allows you to perform the same actions that you would set up within a macro. You could take those macro actions and have them run via a Blue Prism code stage.&lt;BR /&gt;&lt;BR /&gt;I see a couple of different approaches you could follow. If all you're doing is searching for a record and updating a cell, the existing actions in the MS Excel VBO would enable you to perform the steps necessary for that. You could also save the resulting Excel file as an XLSX instead of XLSM, which would remove the macro from the code as your end client is requesting. Alternatively, you can code the macro in a Blue Prism code stage.&lt;BR /&gt;&lt;BR /&gt;Personally, what I typically do with Excel-related automations is to use the existing actions as much as possible. If I need functionality that doesn't already exist in the VBO, I add new actions, keeping it as generic as possible so that I can reuse it later. In other words, instead of coding your entire macro in a single code stage, code the specific bits of functionality that don't exist otherwise. Then you'll be able to run the whole thing from Blue Prism without having to worry about the macro in Excel.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Nicholas Zejdlik&lt;BR /&gt;RPA Developer&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Fri, 09 Oct 2020 17:22:00 GMT</pubDate>
    <dc:creator>NicholasZejdlik</dc:creator>
    <dc:date>2020-10-09T17:22:00Z</dc:date>
    <item>
      <title>VBA Macro in Code stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/VBA-Macro-in-Code-stage/m-p/87982#M38615</link>
      <description>&lt;SPAN style="color: #0000ff;"&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;I want to apply the macro in one excel file (.xlsx) without saving the macro because client does not want file extension with.xlsm.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Can I write VBA code directly in BP code stage?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Will it be possible if I copy VBA code after run the macro and paste in the BP code stage. will that work? but I dont want to save the macro.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Or any other way which will be easy.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;My Requirement:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;I need to compare two excel (File A &amp;amp; File B)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Now need to Copy record from File A and search that record in File B then filter that record and update certain % against that record.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Again move to File A copy data and search that in File B, filter the data and update the Certain % against the data and so on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;IS it possible without coding.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Please help asap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;BR/Deb&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Asitabha Deb&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Oct 2020 15:36:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/VBA-Macro-in-Code-stage/m-p/87982#M38615</guid>
      <dc:creator>AsitabhaDeb</dc:creator>
      <dc:date>2020-10-08T15:36:00Z</dc:date>
    </item>
    <item>
      <title>RE: VBA Macro in Code stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/VBA-Macro-in-Code-stage/m-p/87983#M38616</link>
      <description>&lt;SPAN style="color: #0000ff;"&gt;Can I write VBA code directly in BP code stage?&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;Mostly, sans some syntax differences. The MS Excel VBO object makes use of the Excel interop, which allows you to perform the same actions that you would set up within a macro. You could take those macro actions and have them run via a Blue Prism code stage.&lt;BR /&gt;&lt;BR /&gt;I see a couple of different approaches you could follow. If all you're doing is searching for a record and updating a cell, the existing actions in the MS Excel VBO would enable you to perform the steps necessary for that. You could also save the resulting Excel file as an XLSX instead of XLSM, which would remove the macro from the code as your end client is requesting. Alternatively, you can code the macro in a Blue Prism code stage.&lt;BR /&gt;&lt;BR /&gt;Personally, what I typically do with Excel-related automations is to use the existing actions as much as possible. If I need functionality that doesn't already exist in the VBO, I add new actions, keeping it as generic as possible so that I can reuse it later. In other words, instead of coding your entire macro in a single code stage, code the specific bits of functionality that don't exist otherwise. Then you'll be able to run the whole thing from Blue Prism without having to worry about the macro in Excel.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Nicholas Zejdlik&lt;BR /&gt;RPA Developer&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Oct 2020 17:22:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/VBA-Macro-in-Code-stage/m-p/87983#M38616</guid>
      <dc:creator>NicholasZejdlik</dc:creator>
      <dc:date>2020-10-09T17:22:00Z</dc:date>
    </item>
    <item>
      <title>RE: VBA Macro in Code stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/VBA-Macro-in-Code-stage/m-p/87984#M38617</link>
      <description>&lt;SPAN style="color: #000000;"&gt;Thanks Nicolas for your suggestion.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;My question is over here "&lt;SPAN style="background-color: #ffff00;"&gt;Can I copy the Macro in excel and paste in BP code stage without saving the Macro in Excel"&lt;/SPAN&gt;?. If yes, then can you please help me with&amp;nbsp; a reference Macro code for "&lt;SPAN style="background-color: #ffff00;"&gt;Opening a Workbook which in saved in Desktop".&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&amp;nbsp;Also please guide me with &lt;SPAN style="background-color: #ffff00;"&gt;"Which .DLL file is require to enter in initialize stage for run the Macro.".&amp;nbsp;&lt;/SPAN&gt; I am already running SAP Scripting in the process and I would like to add VBA Script in that process as well.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;BR/Deb&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Asitabha Deb&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sat, 10 Oct 2020 02:00:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/VBA-Macro-in-Code-stage/m-p/87984#M38617</guid>
      <dc:creator>AsitabhaDeb</dc:creator>
      <dc:date>2020-10-10T02:00:00Z</dc:date>
    </item>
    <item>
      <title>RE: VBA Macro in Code stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/VBA-Macro-in-Code-stage/m-p/87985#M38618</link>
      <description>Hi &lt;A id="MainCopy_ctl10_ucMessageList_rptMessageList_ProfileImageDisplay_2_NameLink_2" biobubblekey="f18e4bb4-b698-44a7-bcf3-41fd9b0a8ebe" href="https://community.blueprism.com/network/profile?UserKey=f18e4bb4-b698-44a7-bcf3-41fd9b0a8ebe" target="_blank" rel="noopener"&gt;Asitabha&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;You cannot copy and paste direct macro code in blue prism code stage.&lt;BR /&gt;1.In VBA you can use "let" Or "set" to set any object but if you do copy paste blue prism never permit use let or set.&lt;BR /&gt;2.Set is very important in VBA.using this word you can set as file,range,sheet,application or object&lt;BR /&gt;3.Blue prism is never recognize very basic vba words and commands like "createobject".&lt;BR /&gt;4.You have to know about dll and same dll you should use in vba so you can just mention that dll name along with path ( use path if required )&lt;BR /&gt;5.you have to use namespace in Blueprism which you can find on google.&lt;BR /&gt;&lt;BR /&gt;I hope it help.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Nilesh&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Nilesh Jadhav &lt;BR /&gt;Senior RPA Specialist&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Oct 2020 20:06:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/VBA-Macro-in-Code-stage/m-p/87985#M38618</guid>
      <dc:creator>NileshJadhavBP</dc:creator>
      <dc:date>2020-10-12T20:06:00Z</dc:date>
    </item>
  </channel>
</rss>

