<?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 choose DAT file on clicking of Macro in Excel in Digital Exchange</title>
    <link>https://community.blueprism.com/t5/Digital-Exchange/How-to-choose-DAT-file-on-clicking-of-Macro-in-Excel/m-p/49787#M144</link>
    <description>&lt;P&gt;HI Prasanth Mittal&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I have worked on couple of automation similar to this but it is to save or save as window&amp;nbsp; to save the file, instead of opening the file, the way we handled that is by spying the window explorer window and sending the full path in the filename box highlighted in the screenshot.&lt;BR /&gt;&lt;BR /&gt;Looking forward to see if&amp;nbsp; some other members in the community, tried different approach to handle this with out spying.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;-----------------------&lt;BR /&gt;If I answered your query. Please  mark it as the "Best Answer"&lt;BR /&gt;&lt;BR /&gt;Harish Mogulluri&lt;BR /&gt;Lead developer&lt;BR /&gt;America/New_York TX&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 06 Mar 2024 19:12:00 GMT</pubDate>
    <dc:creator>harish.mogulluri</dc:creator>
    <dc:date>2024-03-06T19:12:00Z</dc:date>
    <item>
      <title>How to choose DAT file on clicking of Macro in Excel</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/How-to-choose-DAT-file-on-clicking-of-Macro-in-Excel/m-p/49786#M143</link>
      <description>&lt;P&gt;Hi Everyone&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I'm looking for a way to load the DAT file when run a macro action opens a pop-up dialog box to select the DAT file using Blue Prism Process Studio or Object Studio.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="5870.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/6054i2BFBBA1D9E1F8082/image-size/large?v=v2&amp;amp;px=999" role="button" title="5870.png" alt="5870.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I'm able to run a macro using MS Excel VBO action but am not able to find a way to pass the DAT file path without spying.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I need to use SPY then sometimes it can break.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Is there any other possible way to handle this situation?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Prashant Mittal&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Mar 2024 17:09:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/How-to-choose-DAT-file-on-clicking-of-Macro-in-Excel/m-p/49786#M143</guid>
      <dc:creator>pmittal</dc:creator>
      <dc:date>2024-03-06T17:09:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to choose DAT file on clicking of Macro in Excel</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/How-to-choose-DAT-file-on-clicking-of-Macro-in-Excel/m-p/49787#M144</link>
      <description>&lt;P&gt;HI Prasanth Mittal&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I have worked on couple of automation similar to this but it is to save or save as window&amp;nbsp; to save the file, instead of opening the file, the way we handled that is by spying the window explorer window and sending the full path in the filename box highlighted in the screenshot.&lt;BR /&gt;&lt;BR /&gt;Looking forward to see if&amp;nbsp; some other members in the community, tried different approach to handle this with out spying.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;-----------------------&lt;BR /&gt;If I answered your query. Please  mark it as the "Best Answer"&lt;BR /&gt;&lt;BR /&gt;Harish Mogulluri&lt;BR /&gt;Lead developer&lt;BR /&gt;America/New_York TX&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Mar 2024 19:12:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/How-to-choose-DAT-file-on-clicking-of-Macro-in-Excel/m-p/49787#M144</guid>
      <dc:creator>harish.mogulluri</dc:creator>
      <dc:date>2024-03-06T19:12:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to choose DAT file on clicking of Macro in Excel</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/How-to-choose-DAT-file-on-clicking-of-Macro-in-Excel/m-p/49788#M145</link>
      <description>&lt;P&gt;Hello Prasanth Mittal,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The thing is when running the macro with the MS Excel VBO action and a popup is displayed, Blue Prism hangs until the macro is finished, that means the macro is waiting for someone to type the path and save the file. This has occurred to me on numerous occasions, so the main approach I've taken is similar to what&amp;nbsp;&lt;A class="user-content-mention" data-sign="@" data-contactkey="a1364716-b40d-4af9-81ad-3fc4498d485b" data-tag-text="@Harish Mogulluri" href="https://community.blueprism.com/network/profile?UserKey=a1364716-b40d-4af9-81ad-3fc4498d485b" data-itemmentionkey="162c8c73-df38-4fb4-ba9f-7a378d4738d3"&gt;@Harish Mogulluri&lt;/A&gt; has implemented.&lt;/P&gt;
&lt;DIV class="flex flex-grow flex-col max-w-full"&gt;
&lt;DIV data-message-author-role="assistant" data-message-id="6a886e8c-bf91-4296-95ce-3372f7d76355" class="min-h-[20px] text-message flex flex-col items-start gap-3 whitespace-pre-wrap break-words [.text-message+&amp;amp;]:mt-5 overflow-x-auto"&gt;
&lt;DIV class="markdown prose w-full break-words dark:prose-invert light"&gt;
&lt;P&gt;Once, while experimenting with process and run modes, I developed Process A(Foreground) to handle everything related to an Excel file with a macro, and Process B(Background) was designed to constantly 'listen' for a macro popup to display, both running simultaneously on the same resource. When Process A executed a macro, Process B handled it successfully, as tested in the Control Room.&lt;/P&gt;
&lt;P&gt;Another approach involves editing those macros in their code to prevent any popups from displaying and to send paths to a local folder (e.g., C:\...), but this requires proficiency in VBA coding. However, sometimes clients prefer not to modify macros, so caution is necessary in such cases.&lt;/P&gt;
&lt;P&gt;Has anyone attempted different approaches?&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Daniel Sanhueza&lt;BR /&gt;RPA Professional Developer&lt;BR /&gt;Deloitte&lt;BR /&gt;America/Santiago&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 20:05:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/How-to-choose-DAT-file-on-clicking-of-Macro-in-Excel/m-p/49788#M145</guid>
      <dc:creator>Daniel_Sanhueza</dc:creator>
      <dc:date>2024-03-06T20:05:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to choose DAT file on clicking of Macro in Excel</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/How-to-choose-DAT-file-on-clicking-of-Macro-in-Excel/m-p/49789#M146</link>
      <description>&lt;P&gt;Hi Daniel,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Could you please give more info on Process B Background Listener for a pop-up to display?&lt;BR /&gt;I have created an object that is window-based spy to identify the pop-up and enter the file path to open after clicking on the macro icon.&lt;BR /&gt;But I'm unable to identify to run both at the same time.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Prashant Mittal&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Mar 2024 20:41:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/How-to-choose-DAT-file-on-clicking-of-Macro-in-Excel/m-p/49789#M146</guid>
      <dc:creator>pmittal</dc:creator>
      <dc:date>2024-03-06T20:41:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to choose DAT file on clicking of Macro in Excel</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/How-to-choose-DAT-file-on-clicking-of-Macro-in-Excel/m-p/49790#M147</link>
      <description>&lt;P&gt;It's a complex topic to delve into, but essentially, with run modes, you can have multiple instances running on the same resource simultaneously. I'll leave this link here that explains very well what run modes are about: &lt;A href="https://community.blueprism.com/question/how-determined-processes-run-mode-in-blueprism"&gt;how-determined-processes-run-mode-in-blueprism&lt;/A&gt;. However, I advise you to check the documentation regarding run modes because it's far more complex than what I've mentioned. It only takes one object in exclusive run mode on your process to prevent you from running another instance.&lt;/P&gt;
&lt;DIV class="flex flex-grow flex-col max-w-full"&gt;
&lt;DIV data-message-author-role="assistant" data-message-id="b40c968b-a16b-4004-80a8-db861e152ee0" class="min-h-[20px] text-message flex flex-col items-start gap-3 whitespace-pre-wrap break-words [.text-message+&amp;amp;]:mt-5 overflow-x-auto"&gt;
&lt;DIV class="markdown prose w-full break-words dark:prose-invert light"&gt;
&lt;P&gt;Regarding your issue, if you have an object that enters the path and saves it correctly, then you are fine. I suggest not using the MS Excel VBO to run the macro. Think of Excel as another platform to run the macro. What I used in the past was "Utility - Environment:Start Process" and gave input parameters with the process Excel and the path of the Excel file but also you can open the Excel using the MS Excel VBO, but don't use run macro action because it will hang. Create another action to click the button that runs the macro, and then call the action that you've already built, and you should be good. There's a lot of ways to reach the desire result.&lt;BR /&gt;Regards!&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="mt-1 flex justify-start gap-3 empty:hidden"&gt;
&lt;DIV class="text-gray-400 flex self-end lg:self-center justify-center lg:justify-start mt-0 -ml-1 h-7 visible"&gt;&lt;SPAN class="" data-state="closed"&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="flex"&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Daniel Sanhueza&lt;BR /&gt;RPA Professional Developer&lt;BR /&gt;Deloitte&lt;BR /&gt;America/Santiago&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 21:18:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/How-to-choose-DAT-file-on-clicking-of-Macro-in-Excel/m-p/49790#M147</guid>
      <dc:creator>Daniel_Sanhueza</dc:creator>
      <dc:date>2024-03-06T21:18:00Z</dc:date>
    </item>
  </channel>
</rss>

