excel - Close userform using myForm.Hide or Unload Me -




before start let me give background. working on vba project excel , computer using has limited resources (and have been asked light possible fast execution time). in project open multiple userform @ different times, apply filters on sheet example.

as said resources limited , want know if frmfilters.hide enough close userform or if there better way ?

i've read about unload me i'm not sure how it's working because i'll apply filters form , need keep them once form closed until user totally close excel file.

is there situation unload me better frmfilters.hide ?

regards, teasel

i found interesting answer question thought useful post here.

unload me

unload me 

removes form memory , stop application if on main form of project. every modification did in form lost.

hide

myform.hide 

only hide form. if on main form of application, not end program (the debug mode still running example). every modification in form kept next time show form.

which 1 use?

depends of situation believe. in project, form made open/close multiple times chose hide avoid having allow memory form every time.





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -