Application.GetOpenFileName

  • Thread starter Thread starter ptrowe
  • Start date Start date
P

ptrowe

I am using Application.GetOpenFileName to prompt a user to select a file
from a list of files. It works fine to select a type of file
such a *.txt.

What I would like to do is to narrow the selection further, e.g.

sample*.txt.

The filter in the Application.GetOpenFileName does not recognize
anything before the *. This example would still display all .txt
files.

Has anyone come up with a method to display only certain files of a
specific type?
 
When the Open Filename dialog box opens, type sample*.txt and click the OK
button.

Milind
 
Hi,

Try the example given in the help
Application.GetOpenFilename("Text Files (*.txt), *.txt")

Regards,
SSR

I am using Application.GetOpenFileName to prompt a user to select a file
from a list of files. It works fine to select a type of file
such a *.txt.

What I would like to do is to narrow the selection further, e.g.

sample*.txt.

The filter in the Application.GetOpenFileName does not recognize
anything before the *. This example would still display all .txt
files.

Has anyone come up with a method to display only certain files of a
specific type?
 
Back
Top