I'm trying to open a .xls file in vb, but not a specific file. What I need is something like this:
if filename.typefile=.xls then
msgbox ("it's an Excel file")
What I wrote in red colour is the code I need, because I know this code doesn't exist.
Thanks in advance.