cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dumi
New Member

Open Excel file

I have excel files as bellow,

Dumi_0-1653017692136.png

I need to open the excel file by date. so I used below code, 

Dumi_1-1653017923626.png

But, below error came(Failed to open excel file). Please tell me how to solve it

Dumi_2-1653018002583.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
VJR
Super User
Super User

Print the full path in a display box and see what path it shows up.

VJR_4-1653019633782.png

 

 

It shows the asterisk also. Clearly there is no such file with the asterisk.

The parameter needs an "existing Excel document" it says.

 

VJR_1-1653019055380.png

 

 

If you want to open today's file and if you are sure that there is always going to be 1 file having today's date then you can use this approach which makes use of File filter option.

 

VJR_2-1653019301940.png

 

After doing the above, 

%Files[0].Fullname% will give the name of the file you need having today's date.

 

VJR_3-1653019465169.png

 

 

Now you can use it in Launch Excel.

View solution in original post

2 REPLIES 2
VJR
Super User
Super User

Print the full path in a display box and see what path it shows up.

VJR_4-1653019633782.png

 

 

It shows the asterisk also. Clearly there is no such file with the asterisk.

The parameter needs an "existing Excel document" it says.

 

VJR_1-1653019055380.png

 

 

If you want to open today's file and if you are sure that there is always going to be 1 file having today's date then you can use this approach which makes use of File filter option.

 

VJR_2-1653019301940.png

 

After doing the above, 

%Files[0].Fullname% will give the name of the file you need having today's date.

 

VJR_3-1653019465169.png

 

 

Now you can use it in Launch Excel.

It worked. Thank you very much

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (1,909)