Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I do a lot of VB programming in the modules, which take data from a
spreadsheet, perform a calcualtion and write the answer back to the spreadsheet. I have a lot of code in a number of modules. At a certain point, when I add code to a module, it stops working. Moving the code to another module ususally corrects the problem. My question: Is there a limit on the number or size of each module? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
There is no hard limit on the number of lines of code in a
module, but the compiled size of the code in the module must be less than 64K. I tend to keep modules less than about 3K lines of code. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Richard Weatherly" <Richard wrote in message ... I do a lot of VB programming in the modules, which take data from a spreadsheet, perform a calcualtion and write the answer back to the spreadsheet. I have a lot of code in a number of modules. At a certain point, when I add code to a module, it stops working. Moving the code to another module ususally corrects the problem. My question: Is there a limit on the number or size of each module? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks for the info, Chip.
How do you know how much the compiled size is? "Chip Pearson" wrote: There is no hard limit on the number of lines of code in a module, but the compiled size of the code in the module must be less than 64K. I tend to keep modules less than about 3K lines of code. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Richard Weatherly" <Richard wrote in message ... I do a lot of VB programming in the modules, which take data from a spreadsheet, perform a calcualtion and write the answer back to the spreadsheet. I have a lot of code in a number of modules. At a certain point, when I add code to a module, it stops working. Moving the code to another module ususally corrects the problem. My question: Is there a limit on the number or size of each module? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Unfortunately, there is no way to determine the size of a module,
other than number of lines of code. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Richard Weatherly" wrote in message ... Thanks for the info, Chip. How do you know how much the compiled size is? "Chip Pearson" wrote: There is no hard limit on the number of lines of code in a module, but the compiled size of the code in the module must be less than 64K. I tend to keep modules less than about 3K lines of code. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Richard Weatherly" <Richard wrote in message ... I do a lot of VB programming in the modules, which take data from a spreadsheet, perform a calcualtion and write the answer back to the spreadsheet. I have a lot of code in a number of modules. At a certain point, when I add code to a module, it stops working. Moving the code to another module ususally corrects the problem. My question: Is there a limit on the number or size of each module? |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Chip,
Two ideas on module size that I have used - please advise if these are not as effective as I had thought; 1. Export the module and view the file size using Windows Explorer 2. VBE Tools 2.0 Add-In from Office Automation (http://www.oaltd.co.uk ) has a module size indicator in its toolbar. Alex J "Chip Pearson" wrote in message ... Unfortunately, there is no way to determine the size of a module, other than number of lines of code. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Richard Weatherly" wrote in message ... Thanks for the info, Chip. How do you know how much the compiled size is? "Chip Pearson" wrote: There is no hard limit on the number of lines of code in a module, but the compiled size of the code in the module must be less than 64K. I tend to keep modules less than about 3K lines of code. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Richard Weatherly" <Richard wrote in message ... I do a lot of VB programming in the modules, which take data from a spreadsheet, perform a calcualtion and write the answer back to the spreadsheet. I have a lot of code in a number of modules. At a certain point, when I add code to a module, it stops working. Moving the code to another module ususally corrects the problem. My question: Is there a limit on the number or size of each module? |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You should also get Rob Bovey's VBA Code Cleaner at www.appspro.com
-- Robin Hammond www.enhanceddatasystems.com "Alex J" wrote in message . .. Chip, Two ideas on module size that I have used - please advise if these are not as effective as I had thought; 1. Export the module and view the file size using Windows Explorer 2. VBE Tools 2.0 Add-In from Office Automation (http://www.oaltd.co.uk ) has a module size indicator in its toolbar. Alex J "Chip Pearson" wrote in message ... Unfortunately, there is no way to determine the size of a module, other than number of lines of code. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Richard Weatherly" wrote in message ... Thanks for the info, Chip. How do you know how much the compiled size is? "Chip Pearson" wrote: There is no hard limit on the number of lines of code in a module, but the compiled size of the code in the module must be less than 64K. I tend to keep modules less than about 3K lines of code. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Richard Weatherly" <Richard wrote in message ... I do a lot of VB programming in the modules, which take data from a spreadsheet, perform a calcualtion and write the answer back to the spreadsheet. I have a lot of code in a number of modules. At a certain point, when I add code to a module, it stops working. Moving the code to another module ususally corrects the problem. My question: Is there a limit on the number or size of each module? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
sum, ave with limits, help pls. | Excel Discussion (Misc queries) | |||
CLASS MODULE & SIMPLE MODULE | Excel Discussion (Misc queries) | |||
code in module A to not execute a Worksheet_SelectionChange sub of another module | Excel Discussion (Misc queries) | |||
arrays - module to module | Excel Programming | |||
Variable from a sheet module in a class module in XL XP | Excel Programming |