Word 2007 - Error 4198 when open hyperlink is cancelled

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?
 
R

RAJ KIRAN

HELLO SIR I AM ALOS HAVING THE SAME PROBLEM HERE< SINCE I WAS LOOKING FOR SOMETHING CAME THORUGH YOUR POST SO ASKING WHETHER YOU GOT RIDE OF THIS ERROR > HOW DID YOU DO SO ? IF YES ? I AM ALSO A BIT OF TENSED TO GET RIDE OF THIS KIND OF ERROR> PLEASE GUIDE ME AND HELP ME OUT SIR>

I WILL BE WAITING FOR YOUR REPLY>

REGARDS,
RAJ
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top