View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Judd Jones[_2_] Judd Jones[_2_] is offline
external usenet poster
 
Posts: 12
Default File does not exist

I have a macro that opens a workbook off of my server.
I am wanting to be able to display a dialog box that says that the file does
not exist and then goto to the end of the macro. As is now I get a runtime
error '1004' and you have to end the macro or debug it. I don't want the user
to see this error message.

Here is the code that opens the workbook:
Set destWB = Workbooks.Open("X:\Projects\Group 17 (McLendon)\Group 17
Dayrates\" & wName)