Hi all,
I'm using the following string before opening a folder of Excel files one by one and extracting data from them:
The trouble is by adding the * at the end it is not opening all Excel files - i.e. it doesn't open xlsx files. But it seems to open .xls no problem.
Is there a way i can use this string variable to open all Excel file types? I'm using Excel 2007.
I'm using the following string before opening a folder of Excel files one by one and extracting data from them:
Code:
strExtension = Dir("*.xls*")
The trouble is by adding the * at the end it is not opening all Excel files - i.e. it doesn't open xlsx files. But it seems to open .xls no problem.
Is there a way i can use this string variable to open all Excel file types? I'm using Excel 2007.