Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
luke
 
Posts: n/a
Default Wherre best to place code


I have an excel workbook that uses active -x controls. It allows the
user to model the performance of a micro-scale wind turbine (small
device that fits onto a rooftop). I have VBA code that is located for
each worksheet, some that is contained in Forms and other code that is
located in modules.

My question is: in terms of keeping the workbook small and running
quickly is it Ok to have code for each worksheet or place it in
modules?


thanks, luke


--
luke
------------------------------------------------------------------------
luke's Profile: http://www.excelforum.com/member.php...o&userid=21401
View this thread: http://www.excelforum.com/showthread...hreadid=397790

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

It is best to think of it from a perspective of the workbook design as to
where you should put it. Some code has to go in the worksheet or userform,
event procedures associated with those objects, but where you put any code
that might be called from those procedures is a design issue. It probably
will not make much difference in terms of size and efficiency.

--

HTH

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


"luke" wrote in message
...

I have an excel workbook that uses active -x controls. It allows the
user to model the performance of a micro-scale wind turbine (small
device that fits onto a rooftop). I have VBA code that is located for
each worksheet, some that is contained in Forms and other code that is
located in modules.

My question is: in terms of keeping the workbook small and running
quickly is it Ok to have code for each worksheet or place it in
modules?


thanks, luke


--
luke
------------------------------------------------------------------------
luke's Profile:

http://www.excelforum.com/member.php...o&userid=21401
View this thread: http://www.excelforum.com/showthread...hreadid=397790



  #3   Report Post  
luke
 
Posts: n/a
Default


cheers, it was the size and efficiency I was concerned about. What code
i have appears quite neat and easy to understand.

Luke


--
luke
------------------------------------------------------------------------
luke's Profile: http://www.excelforum.com/member.php...o&userid=21401
View this thread: http://www.excelforum.com/showthread...hreadid=397790

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
Change case...help please Terry Excel Worksheet Functions 14 October 2nd 05 12:29 PM
Macro for changing text to Proper Case JPriest Excel Worksheet Functions 3 August 8th 05 09:31 PM
Using other workbooks.. DavidMunday Excel Worksheet Functions 2 July 1st 05 07:35 AM
Make Change Case in Excel a format rather than formula Kevin Excel Worksheet Functions 1 March 18th 05 08:53 PM
Opening a file with code without a set file name jenkinspat Excel Discussion (Misc queries) 1 March 4th 05 10:50 AM


All times are GMT +1. The time now is 05:51 PM.

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"