View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Allen Geddes Allen Geddes is offline
external usenet poster
 
Posts: 22
Default Close Button Error

Hello,

I've created a UserForm, but seem to be having problems with the
automatically inserted red x close button in the upper right corner of the
UserForm.

When I try and exit my UserForm by using that red X, I get the following
error message:

Run-time error '91':

Object variable or With Block variable not set

Do I need to put in a piece of code to activate the red X button?

something like:

Private sub UserForm_Terminate()

unload me

End Sub


Thank you in advance for your help!!