View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Jim May Jim May is offline
external usenet poster
 
Posts: 430
Default Prevent closing userform

Try commenting out the Unload Me line (the culprit)

"Gert-Jan" wrote in message
:

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