how to close a form in vba (not hide)

  • Thread starter Thread starter Pierre
  • Start date Start date
P

Pierre

Hi all,

i have an initialisation problem.

i am using a form to add data to an excel sheet.

When the user has finish his work he click on a button
and i use:

userform1.hide in the on click event

to close the form because i cannot do what i really want wich is to close
the
form.

How can i close or unload the form?

after that, if the user call back the macro, the initialize function of the
form is not called
(because it is simply hide) and this screw my initialisation.

I want a clean way to close or quit or unload the form.
help

regards,
pierre
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Closing Forms 3
close form 5
Checking to see if a user form is hidden 5
listbox click event question 4
Form Unload? 2
Form.Close 6
Display and close form automatically 3
Show Modeless Form 3

Back
Top