I've got a newbie questions, is it better to have all the sub and function code in a single, big, module or should it be split for example one module per sub/function ?
Thanks in advance!
I've got a newbie questions, is it better to have all the sub and function code in a single, big, module or should it be split for example one module per sub/function ?
Thanks in advance!
VBA is not like newer languages where classes are the main thing. That makes it fairly free to spread the code in modules as you see fit. If you do use class modules, then you must think object oriented, but otherwise not much to worry about.
Having that said,
I've seen many big projects with less than a dozen modules.
For VBA, it doesn't matter. For you, it's best when organized in a way that let you find quickly what you are looking for. Keeping structure tidy is the only purpose of modules.