How to keep the Checkboxes selected by the user unchanged even after closing the userform

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All,

I need a solution to keep this data in the checkboxes unchanged even after the userfrom is closed.
Basically the user from is displayed by selecting a command button of type form control on a spreadsheet.

Please put some light on this.

Thanks
Harinath
 
Either don't close the Userform (use .Hide, instead), or save the
checkbox values on a (possibly hidden) worksheet, and read them back in
when the Userform is reopened.
 
Harinath,

You probably have the statement

Unload Me

or

Unload Userform1

somewhere in the code. This has the effect of removing the visual form, but
also clearing it from memory, so when you display it again, all controls are
re-initialised.

Change the code to

Me.Hide

which will remove the visual form, but retain it in memory.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
It would be better for you to post your code and we can comment on it.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

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