View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Pierre via OfficeKB.com[_2_] Pierre via OfficeKB.com[_2_] is offline
external usenet poster
 
Posts: 122
Default problem userform disappears

Hi,

have a userform called 'startformulier'. on 'startformulier' i have a button
called 'disclaimer'.
When the button is clicked the following code is executed:

Private Sub but_disclaimer_Click()
disclaimer.Show
End Sub

on the userform (disclaimer) that appears i have a button 'OK' to close this
userform again.
the code for the 'OK' button is:

Private Sub but_ok_Click()
unload disclaimer
End sub

The problem is that when the OK button on the disclaimer form is clicked, the
form is closed but also the main form 'startformulier is closed !

Can anybody help me close just the 'disclaimer' form please ?
thanks,
Pierre

P.S. i now use

Private Sub but_ok_Click()
disclaimer.hide
End sub

but i feel this is not the right way to do this.


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200510/1