Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default When to code in sheet or userform modules and when to use modules

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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default When to code in sheet or userform modules and when to use modules

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)


"Tony James" wrote in message
...
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




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Where 2 place the code? (Worksheet Codes Vs. Modules) FARAZ QURESHI Excel Discussion (Misc queries) 3 February 23rd 09 02:01 AM
Delete Code Modules Programatically blatham Excel Discussion (Misc queries) 1 February 3rd 06 05:38 PM
editing code in modules through VB mark Excel Programming 2 August 12th 04 05:20 PM
Class Modules vs Modules Jeff Marshall Excel Programming 2 September 28th 03 07:57 PM
Using the same variable in separate userform modules DarrenW Excel Programming 2 July 11th 03 03:11 AM


All times are GMT +1. The time now is 02:24 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"