Module question

Praedico

New Member
Joined
Jul 17, 2008
Messages
41
Is it better to have 1 module with all your VB "sub" code in it, or many modules with 1 each, or does it matter?

Thank you
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

jeffreybrown

Well-known Member
Joined
Jul 28, 2004
Messages
5,149
It may not matter to some, but for others it helps to keep the routine separate especially if you need to go back and change something. In other words, maybe easier to find.
 
Upvote 0

Praedico

New Member
Joined
Jul 17, 2008
Messages
41
Oh, I should have been more clear with my question. Do you know if it can cause errors either way? Basically, can a module be too big? or can there be too many modules?

sorry for the confusion,
thanks for the help
 
Upvote 0

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,358
Office Version
  1. 365
Platform
  1. Windows
There is a limit on the length of code, but if you find you are having that problem you should seriously looking at reviewing code.
 
Upvote 0

Forum statistics

Threads
1,191,118
Messages
5,984,749
Members
439,907
Latest member
Kayfabe

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top