Prevent closing userform

G

Gert-Jan

In a userform I have a button to some HTML helppages. I use this code:

Link = Range("Test!B28").Value
On Error GoTo Nocando
ActiveWorkbook.FollowHyperlink Address:=Link, NewWindow:=True
Unload Me
Exit Sub
Nocando:
MsgBox "Cannot find" & Link
start.Show

But: the userform closes also with this action. How can I prevent that?

Regards, Gert-Jan
 

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