G
Guest
Dear Wise Ones,
I am wanting to prompt users to open the required file if not already open.
There is some nearly-helpful answers in these posts, but I can't quite
achieve what I want.
This code of mine is useless because errorMsgs executes whether error or not.
Set rotaBk = Workbooks("EAA.xls")
rotaBk.Activate
On Error GoTo errorMsgs
errorMsgs:
MsgBox ("Open EAA.xls ")
Exit Sub
If I try to put a condition on error handling execution:
If error then
MsgBox ("Open EAA.xls " & error)
exit sub
end if
I get a "type mismatch" in the error MsgBox
As always, help most appreciated,
matilda
I am wanting to prompt users to open the required file if not already open.
There is some nearly-helpful answers in these posts, but I can't quite
achieve what I want.
This code of mine is useless because errorMsgs executes whether error or not.
Set rotaBk = Workbooks("EAA.xls")
rotaBk.Activate
On Error GoTo errorMsgs
errorMsgs:
MsgBox ("Open EAA.xls ")
Exit Sub
If I try to put a condition on error handling execution:
If error then
MsgBox ("Open EAA.xls " & error)
exit sub
end if
I get a "type mismatch" in the error MsgBox
As always, help most appreciated,
matilda
ata\" '<<==== CHANGE