I have a macro which works on a specific worksheet in a shared file.
Say the worksheet has been renamed from Test to something else by another user........
How can I set a Msg box to appear instead of the MIcrosoft VB dialog box displaying the following msg?
Run-time error '9'
Subscript out of range
I have tried the following using my trial & error method:
Sub Test()
On Error Got to ErrHandler1
Sheets("Test").Select
Exit Sub
ErrHandler1:
MsgBox "The Test worksheet is not found. Unable to proceed!"
Exit Sub
End Sub
Pls help!![]()
Bookmarks