Look at the macro I gave you. It has a line in there:
Code:fName = Dir("*.xl*") 'filtering key, change to suit'
In this version, it opens any file with an extension of xl???????...anything that starts with "xl".
Fiddle with that until you have a filter that gives you the file type you want to import.
*.xls - Excel 1997-2003 files
*.xl* - Any normal Excel file 1997-2010
*.* - Any file of any type (this could have odd results)
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
“None of us is as good as all of us” - Ray Kroc
“Actually, I *am* a rocket scientist.” - JB (little ones count!)
I notices that the files from the site I mentioned are .cvs ...I don't know actually what is the difference between cvs and xls, but should I change that line (cvs instead of xl)
Working !!!
Thank you !!!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks