GetOpenFileName method different in Excel xp/2003 from Excel 2000.

G

Guest

in Excel 2000, using the GetOpenFileName method you can include a FileFilter
(the first argument) such as *.something.extension and the dialog box would
show those files.

Starting in Excel XP that does not work in code anymore. You can physically
type that into the dialog box under "File name" and it will work but when it
is set in code it will only recognize *.extension.

Is this a design change or a bug?

Sample code:
 
T

Tom Ogilvy

I have never tried it, but I wouldn't expect that to work in any version of
excel. If it does, then I guess that is a happy dance. the only thing
stated to work it so limit files based on the extension.

In xl2002 and later you could use the filedialog object to do what you
describe I would think.
 
M

Myrna Larson

It's a case of failing memory <g>. What you describe has never worked in any
version of Excel that I've used. I've missed it, too.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top