Select file after GetOpenFilename

R

RB Smissaert

How do I select a specified file (as if clicked by the mouse) after opening
the file Open dialog with GetOpenFilename?
I don't want to use the specified file name as a filter, because I want to
show all the files in the folder.
Thanks for any assistance.

RBS
 
R

RB Smissaert

This is the best I can do so far:

SendKeys strFile, False

varDialogResult = _
Application.GetOpenFilename(Title:="Press TAB to filter out the file: "
& strFile)


RBS
 

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