View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
GS[_2_] GS[_2_] is offline
external usenet poster
 
Posts: 3,514
Default how to reshow userform after following a link

Try checking to see if the userforms are loaded before unhiding.

In the Workbook_Activate event:
If Not Userform1 Is Nothing Then Userform1.Show
If Not Userform2 Is Nothing Then Userform2.Show

This precludes that when the userforms aren't needed then they get
unloaded. This way, the code will unhide the userforms only when
they're loaded.

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc