prompting to select a =>2007 excel file

drom

Active Member
Joined
Mar 20, 2005
Messages
498
Office Version
  1. 2019
  2. 2016
  3. 2013
  4. 2011
  5. 2010
  6. 2007
Hi and Thanks in advance!

I am trying to prompt a user for a Excel file eg: .xlsm or .xlsx

but using:

Code:
vFxName1 = Application.GetOpenFilename(FileFilter:="All Excel Files (*.xl?*), *.xl?*", Title:="Select Excel Files")
vFxName2 = Application.GetOpenFilename(FileFilter:="All Excel Files (*.xl??), *.xl??", Title:="Select Excel Files")
does not work, any idea?

Thanks!
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Try just use xls* without the ? question mark.
 
Upvote 0
I have tryed that as well, but does not work!
vFxName = Application.GetOpenFilename(FileFilter:="Excel Files (*.xls*), *.xls*", Title:="Select a excel file)
 
Upvote 0
... FileFilter:="Excel Files, *.xlsx;*.xlsm", ...
 
Upvote 0

Forum statistics

Threads
1,203,046
Messages
6,053,190
Members
444,644
Latest member
keepontruckinc4

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top