Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
General Question about Moduals
I'm putting all my Macros in one modual for a series of 4 reports, should
these be in 4 separate moduals, is there any danger of putting them all in one? So far I have about 10 pages of code if I copy it into a word doc. Thanks for your help. |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
General Question about Moduals
hi,
they should be in seperate modules. you can put them in 1 module but this could cause memory problems and other memory related problems ie run slow, stalling ect. regards FSt1 "JOUIOUI" wrote: I'm putting all my Macros in one modual for a series of 4 reports, should these be in 4 separate moduals, is there any danger of putting them all in one? So far I have about 10 pages of code if I copy it into a word doc. Thanks for your help. |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
General Question about Moduals
Absolutely not true!
You will only run into problems if the size of your module exceeds 64Kb, which is quite big for a text module. However, there are other considerations other than just problems, there is a design issue. If you have four very different reports, it probably makes sense to put all procedures associated with each report in separate modules, and name that module in relation to the report. If you have some common code, I would advise splitting that out into yet another, utility, module, and again give it a meaningful name. This, together with appropriate and extensive comments, will make debugging simpler in the future. -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "FSt1" wrote in message ... hi, they should be in seperate modules. you can put them in 1 module but this could cause memory problems and other memory related problems ie run slow, stalling ect. regards FSt1 "JOUIOUI" wrote: I'm putting all my Macros in one modual for a series of 4 reports, should these be in 4 separate moduals, is there any danger of putting them all in one? So far I have about 10 pages of code if I copy it into a word doc. Thanks for your help. |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
General Question about Moduals
And if you (the OP) have any public variables, you may want to use a separate
module for that, too. Bob Phillips wrote: Absolutely not true! You will only run into problems if the size of your module exceeds 64Kb, which is quite big for a text module. However, there are other considerations other than just problems, there is a design issue. If you have four very different reports, it probably makes sense to put all procedures associated with each report in separate modules, and name that module in relation to the report. If you have some common code, I would advise splitting that out into yet another, utility, module, and again give it a meaningful name. This, together with appropriate and extensive comments, will make debugging simpler in the future. -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "FSt1" wrote in message ... hi, they should be in seperate modules. you can put them in 1 module but this could cause memory problems and other memory related problems ie run slow, stalling ect. regards FSt1 "JOUIOUI" wrote: I'm putting all my Macros in one modual for a series of 4 reports, should these be in 4 separate moduals, is there any danger of putting them all in one? So far I have about 10 pages of code if I copy it into a word doc. Thanks for your help. -- Dave Peterson |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
General Question about Moduals
Obviously you was the OP, you already know that I do that <G
Bob "Dave Peterson" wrote in message ... And if you (the OP) have any public variables, you may want to use a separate module for that, too. Bob Phillips wrote: Absolutely not true! You will only run into problems if the size of your module exceeds 64Kb, which is quite big for a text module. However, there are other considerations other than just problems, there is a design issue. If you have four very different reports, it probably makes sense to put all procedures associated with each report in separate modules, and name that module in relation to the report. If you have some common code, I would advise splitting that out into yet another, utility, module, and again give it a meaningful name. This, together with appropriate and extensive comments, will make debugging simpler in the future. -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "FSt1" wrote in message ... hi, they should be in seperate modules. you can put them in 1 module but this could cause memory problems and other memory related problems ie run slow, stalling ect. regards FSt1 "JOUIOUI" wrote: I'm putting all my Macros in one modual for a series of 4 reports, should these be in 4 separate moduals, is there any danger of putting them all in one? So far I have about 10 pages of code if I copy it into a word doc. Thanks for your help. -- Dave Peterson |
#6
Posted to microsoft.public.excel.misc
|
|||
|
|||
General Question about Moduals
I was piggy backing on your response. And I did mean the original original
poster (OOP???). <vbg Bob Phillips wrote: Obviously you was the OP, you already know that I do that <G Bob "Dave Peterson" wrote in message ... And if you (the OP) have any public variables, you may want to use a separate module for that, too. Bob Phillips wrote: Absolutely not true! You will only run into problems if the size of your module exceeds 64Kb, which is quite big for a text module. However, there are other considerations other than just problems, there is a design issue. If you have four very different reports, it probably makes sense to put all procedures associated with each report in separate modules, and name that module in relation to the report. If you have some common code, I would advise splitting that out into yet another, utility, module, and again give it a meaningful name. This, together with appropriate and extensive comments, will make debugging simpler in the future. -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "FSt1" wrote in message ... hi, they should be in seperate modules. you can put them in 1 module but this could cause memory problems and other memory related problems ie run slow, stalling ect. regards FSt1 "JOUIOUI" wrote: I'm putting all my Macros in one modual for a series of 4 reports, should these be in 4 separate moduals, is there any danger of putting them all in one? So far I have about 10 pages of code if I copy it into a word doc. Thanks for your help. -- Dave Peterson -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I find and replace a question mark in Excel? | Excel Discussion (Misc queries) | |||
Newbie With A Question | Excel Worksheet Functions | |||
Anybody Help with previous question | Excel Discussion (Misc queries) | |||
General Question | Excel Worksheet Functions | |||
Hints And Tips For New Posters In The Excel Newsgroups | Excel Worksheet Functions |