LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default public variable declaration, memory efficient?

I have what's turned into a fairly massive spreadsheet project (file size
approaching (7 MG), getting a bit overloaded with heavily programmed forms
and intricate functionalities. Recently have been running into messages "not
enough system resources to display" when I'm trying to debug. I have been
routinely exporting the forms and modules and reimporting them after making
any substantial changes, so the vba compiler can clean itself up.

So, to finally get to my questions! Is it excessive of me to have 20
different variables declared as Public? And is it more or less efficient to
declare them as Public than within each procedure as they're needed?

Any other suggestions on smartly conserving system resources? Does it help
to reduce the length of individual procedures? i.e. break them into smaller
tasks? Does it help to spread them out accross more modules?

Any advice you have will be most appreciated!
 
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
Use of Public for data declaration in Excel 2000 Gandalph Excel Programming 1 April 17th 08 06:47 PM
More efficient memory deallocation ct60 Excel Programming 4 October 26th 06 03:51 PM
Declaration of public variable - Question Les Stout[_2_] Excel Programming 2 October 5th 05 02:53 PM
Public declaration Greg[_16_] Excel Programming 2 January 21st 05 10:53 PM
public declaration kevin Excel Programming 1 December 6th 03 07:00 PM


All times are GMT +1. The time now is 10:49 PM.

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

About Us

"It's about Microsoft Excel"