View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default HOW to close a userform using a button

This is a control (like a button) on that userform that you want to close:

Private Sub XX_Click()
unload me
End Sub

Me is the userform that owns the code.



CC wrote:

To close a userform I wrote

Private Sub XX_Click()
UserForm.Close
End Sub

but don't Close the form I get the a error message " invallide qualifier "

HOW to close a userform using a button ?


--

Dave Peterson