Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Flow - Macros need to open a txt file

(0) ShareShare
ReportReport
Posted on by

Hi, please assist.

I have started with a flow where I launch Excel file. 

Then I Run Excel macro.

This macros need to read in two text files, so it opens a window where it prompts me to click on the first text file. Once that is done, it will opens another windows, prompting me to open the second text file. what would be the next actions to allow flow to perform these automatically. 

 

On a daily basis these text file names are different. It starts with and ends with the same characters for e.g dv05m0316d1.

However, the digits changes according to the previous day's date. 

How would I make use of a variable in the filename?

 

Regards

  • lbendlin Profile Picture
    7,794 Super User 2025 Season 1 on at
    Re: Flow - Macros need to open a txt file

    Are you planning to use PAD or a cloud flow?

    Have you considered using Office scripts instead of macros?

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow