ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Select file after GetOpenFilename (https://www.excelbanter.com/excel-programming/322468-select-file-after-getopenfilename.html)

RB Smissaert

Select file after GetOpenFilename
 
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


RB Smissaert

Select file after GetOpenFilename
 
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


"RB Smissaert" wrote in message
...
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




All times are GMT +1. The time now is 12:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com