motabrasil
Member
Hi,
I have a code that capture several files saved in a specific folder by users. However, even asking the users to save as .xlsx files, some files were saved as .xls and the macro cannot find them.
Is there a way to prevent this error, making the code open any extension saved (.xls or .xlsx)?
Example: sFile = ActiveWorkbook.Path & "\" & "FileName*"
Thanks in advance
Motabrasil
I have a code that capture several files saved in a specific folder by users. However, even asking the users to save as .xlsx files, some files were saved as .xls and the macro cannot find them.
Is there a way to prevent this error, making the code open any extension saved (.xls or .xlsx)?
Example: sFile = ActiveWorkbook.Path & "\" & "FileName*"
Thanks in advance
Motabrasil