web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to tell Excel if f...
Power Automate
Unanswered

How to tell Excel if file is open then use that incident only

(0) ShareShare
ReportReport
Posted on by 73
Hi Experts
 
I'm using the following flow to start excel and run my morning macro. It works fine. 
 
Yesterday I encountered a situation where I was working and date changed so I needed to run the macro. Being experimental brain, I used PA to do the same. 
 
This time, it opened a new incidence of the same file, there by one incidence became read only and other it worked with. With two incidents of same file, it there by gave an error in running the macro, as it needed to save the file too.
 
So, is there any way to tell excel, if the file is open, use that only than opening all over again.
 
The flow I'm using is as below.
 
Thanks in advance.
Much appreciated.
 
Excel.LaunchExcel.LaunchAndOpenUnderExistingProcess Path: $'''C:\\Users\\Sanja\\Dropbox\\All Records.xlsb''' Visible: True ReadOnly: False Instance=> R01
Excel.RunMacro Instance: R01 Macro: $'''\'All Records.xlsb\'!BanksSortMorning'''
 
Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 378 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 305 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 155 Most Valuable Professional

Last 30 days Overall leaderboard