UserForm_Initialize()

  • Thread starter Thread starter Joe Derr
  • Start date Start date
J

Joe Derr

Is there a way to basically re-run the Sub UserForm_Initialize() so
when the form is re-displayed it will run it again?

There is code in the Sub UserForm_Initialize()that needs to be ran
each time the userform is displayed, it will determine if a button is
displayed or not, and if the form had been viewed (loaded) before in
the session, it will not check the location to see if the button
should be displayed or not.

The only other thing I can think of doing is maybe a function in a
separate module that will set that button on that userform when
called?

Please help.

Thanks

Joe
 
In case you don't understand the answer, Jim means move the code from the
Initialize event to the Activate event.

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Thank you!

Private Sub UserForm_Activate()

End Sub

Works GREAT. I am using this else where in my code for other things I
wanted to do, and couldn't get them to work.

Thanks again!

Joe
 

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

Back
Top