Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello.
I have a macro that need to browse for a file. I'm using GetOpenFilename method. What i need to do now is to wait until the file is loaded to continue the execution of the code. Is this possible? Thanks. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Luis,
Try this... Dim strFreshFile as String Dim wkbFreshFile as Workbook strFreshFile = Application.GetOpenFileName(what ever paramters you've got) if strFreshFile < "False" Then Set wkbFreshFile = Workbooks.Open(Filename:=strFreshFile) end if This should do the trick. Dale Preuss "Luis" wrote: Hello. I have a macro that need to browse for a file. I'm using GetOpenFilename method. What i need to do now is to wait until the file is loaded to continue the execution of the code. Is this possible? Thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
sendkeys(keys,wait) how do I use wait | Excel Discussion (Misc queries) | |||
opening a file in Excel starts application but dose not open file | Excel Discussion (Misc queries) | |||
Opening file in Excel 2003 opens multipule instances of same file | Excel Discussion (Misc queries) | |||
File:1 and File:2 -- Double Files when Opening One File | Excel Discussion (Misc queries) | |||
opening an excel file opens a duplicate file of the same file | Excel Discussion (Misc queries) |