Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I'm not sure why the following vba code does not work as intended if the existing excel file is found and activate but it keeps prompting the error message that the file is not found Dim Wbk As Workbook For Each Wbk In Workbooks If Wbk.Name = "GL.xls" Then Windows("GL.xls").Activate Else MsgBox " The required file is not found - process end" Exit Sub End If Next Wbk Please help, thanks in advance Regards Len |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Open File - Need an warning to appear if file cannnot be found | Excel Programming | |||
Importing text file, only option to edit existing file | Excel Discussion (Misc queries) | |||
How to change closed file name - Error: file not found | Excel Programming | |||
File Not Found menu pops up after I open a file | Excel Discussion (Misc queries) | |||
How do I reference external data from a file, file name found in . | Excel Discussion (Misc queries) |