T
ThinkPink
Using Word 2007, I have created a macro to a hyperlink. If I click Cancel
when the window opens that asks "Would you like to open this file?", I get
the Run-time Error '4198.'
This is a macro-enabled document that many employees use for a template so
it must be corrected within the VBA programming if possible.
Here is a sample of the macro:
Sub Acronyms()
On Error GoTo errorHandler
ActiveDocument.FollowHyperlink _
Address:=" http://www.acronymfinder.com/", _
NewWindow:=True, AddHistory:=True
Exit Sub
errorHandler:
Resume Next
End Sub
How do I "trap" the error so that employees won't get the debug error message?
when the window opens that asks "Would you like to open this file?", I get
the Run-time Error '4198.'
This is a macro-enabled document that many employees use for a template so
it must be corrected within the VBA programming if possible.
Here is a sample of the macro:
Sub Acronyms()
On Error GoTo errorHandler
ActiveDocument.FollowHyperlink _
Address:=" http://www.acronymfinder.com/", _
NewWindow:=True, AddHistory:=True
Exit Sub
errorHandler:
Resume Next
End Sub
How do I "trap" the error so that employees won't get the debug error message?