I have a macro which asks the user for a file using:
paramname = Application.GetOpenFilename(“Excel Files (*.xlsx), *.xlsx”, , “Enter name of parameter file”)
That shows all the “.XLSX” files in the last used directory. What I want to do is limit it so they only see a subset of these, starting with “GR”. So, in DOS, you would do “Dir GR*.XLSX” and get the list back. When I try
paramname = Application.GetOpenFilename(“Excel Files (GR*.xlsx), GR*.xlsx”, , “Enter name of parameter file”)
It still returns the full list of all XLSX files in that directory.
So, what am I doing wrong?
Cheers
Alan