Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I was wondering how i would go about adding a warning message that says "File
cannot be found" to the following code if the the test.xls file cannot be found? Sub filefile Workbooks.Open FileName:="C:\test\test.xls" MyVal = Application.Workbooks("test.xls").Sheets("Sheet1") .Range("A1").Value Workbooks("test.xls").Close SaveChanges:=False End Sub thanks in advance for your help! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Saved *.csv file gives SYLK file type warning upon Excel 2003 open | Excel Discussion (Misc queries) | |||
Macro warning pops up at file open | Excel Discussion (Misc queries) | |||
Close an Excel file if is found it open. | Excel Programming | |||
File Not Found menu pops up after I open a file | Excel Discussion (Misc queries) | |||
Excel file already open warning | Setting up and Configuration of Excel |