How to use Read Range activity with two possible file extensions?

Hi,

I need to use Read Range activity for an excel file that could be either .xlsm or .xlsx.
The extensions depend on whether macro has opened a file or not.

Any suggestions?
Thanks in advance.

Hi @bp777

i would suggest you to go with workbook readrange for both the extensions

@bp777
Use Workbook read range activity for reading the files.

@bp777
Use Workbook read range activity for reading the files.

Hi,

In for each activity give the syntax as Directory.GetFiles(“Provide the folder path”)
Then you will get a file use workbook read range activity to read a file.

It will work try now

Regards,
Varun

Hi @bp777,

You can use Excel Application Scope → Read range activity to read the files. It will read it easily.

Thanks

If it exists in its own Dir, You can use a wildcard to find the file into an array and use for each to read it.