When to code in sheet or userform modules and when to use modules

  • Thread starter Thread starter Tony James
  • Start date Start date
T

Tony James

Hi

I am beginning to appreciate what I can do with excel and vb but I am trying
to develop some rules for myself regarding when to put the code in a modue
and when to put it behind the userform sheet etc.

does anyone have some rules?

thanks
 
Tony,

If the code is only to be used by that form, you can put it in the userform
module. If it is to be used elsewhere, including another form, make it
public and put it in a general module.

--

HTH

RP
(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