Read our blogs, tips and tutorials
Try our exercises or test your skills
Watch our tutorial videos or shorts
Take a self-paced course
Read our recent newsletters
License our courseware
Book expert consultancy
Buy our publications
Get help in using our site
549 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owl trainers only (no freelancers)
Almost no cancellations
We have genuine integrity
We invoice after training
Review 30+ years of Wise Owl
View our top 100 clients
Search our website
We also send out useful tips in a monthly email newsletter ...
Software ==> | Power Automate Desktop (18 exercises) |
Topic ==> | Files and folders (2 exercises) |
Level ==> | Average difficulty |
Subject ==> | Power Automate and PAD training |
This exercise is provided to allow potential course delegates to choose the correct Wise Owl Microsoft training course, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.
You want to write a flow to open a workbook if it exists:
For example, the workbook Knife.xlsx exists in the above folder, so we can open it.
However, if a workbook doesn't exist your flow should display a suitable message:
If you try to open the workbook called Spoon.xlsx in the above folder you should see a message like this.
To get this to work create a new flow called Is there a spoon with the following actions:
Action | Notes |
---|---|
Set variable | Create a variable called FileName and set its value to the name of the file you want to open (eg knife or spoon). |
Set variable | Create another variable called FilePath to hold the full path to this file, including the file name and .xlsx file extension (using a variable to store this will make the flow easier to read, and also let you reference this file path again easily). |
If file exists | Check if a file exists with this file path. If it does, your flow should launch Excel, opening the file; otherwise your flow should use an Else action to display a message saying that the file was not found. |
Test that your flow works with a valid and invalid file name, then save it and close it down.
You can find other training resources for the subject of this exercise here:
Kingsmoor House
Railway Street
GLOSSOP
SK13 2AA
Landmark Offices
99 Bishopsgate
LONDON
EC2M 3XD
Holiday Inn
25 Aytoun Street
MANCHESTER
M1 3AE
© Wise Owl Business Solutions Ltd 2024. All Rights Reserved.