Julian Ladbury

I want to add a toolbar button to a Word 2003 VBA project to access a web page. The code below runs fine when my internet connection is open.

On Error GoTo notFound
ThisDocument.FollowHyperlink _
Address:="http://www.chronolator.co.uk/Tutorials/index.htm", _
NewWindow:=True, AddHistory:=True
Exit Function
' problem time
Call showMessage(c8Msg5310)

However, if I take my internet connection down, the On Error statement is ignored and I get a runtime error panel.

The trap does work if the Address is a non-existent local file rather than an http address.

Re: On Error not trapping internet connection problem

Julian Ladbury

My mistake: an earlier On Error in the same subroutine was active. Apologies for any inconvenience caused.