Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default Help organizing large program

Hello,
I have a VBA program, which is written all on sheet1 of a workbook. I
have about 15 subroutines and it is getting hard to navigate around
the code. I'd like to move some of the completed subs off of sheet1
and maybe put them into modules. I'd especially like to move all of
the variable declarations onto another page. I have about 100
variable, all are global with respect to sheet1. I have tried this,
but I can't get the variables to transfer over. Please advise.

1. How do I create global variables which would be visible from all
sheets and all modules?
2. How do I take a subroutine out of sheet1 and into a module?

thanks for your help
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default Help organizing large program

Use a Public Sub! Look at this:
http://www.your-save-time-and-improv...ivate-sub.html

HTH,
Ryan---
--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Andrew" wrote:

Hello,
I have a VBA program, which is written all on sheet1 of a workbook. I
have about 15 subroutines and it is getting hard to navigate around
the code. I'd like to move some of the completed subs off of sheet1
and maybe put them into modules. I'd especially like to move all of
the variable declarations onto another page. I have about 100
variable, all are global with respect to sheet1. I have tried this,
but I can't get the variables to transfer over. Please advise.

1. How do I create global variables which would be visible from all
sheets and all modules?
2. How do I take a subroutine out of sheet1 and into a module?

thanks for your help

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
Using the functions "LARGE"and "SMALL" in an Excel program Ed[_30_] Excel Programming 0 March 18th 08 05:14 PM
Organizing the VBE Randy[_2_] Excel Programming 2 September 20th 07 06:22 PM
Program too large [email protected] Excel Programming 4 December 14th 06 02:31 PM
looping through and organizing a large amount of data Erik Excel Programming 4 September 6th 04 05:05 PM
organizing a large amount of data into a table oakman[_9_] Excel Programming 2 May 22nd 04 02:27 AM


All times are GMT +1. The time now is 11:25 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"