ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Form/Module Code Question (https://www.excelbanter.com/excel-programming/392210-form-module-code-question.html)

Les

Form/Module Code Question
 
Not being a trained programmer, I was just wondering if it is good practice
to write all the code in the form code section or is it better to jump from
the form code to a module to do the work after clicking on a command button
on the form ??

--
Les

[email protected]

Form/Module Code Question
 
On Jun 28, 1:02 am, Les wrote:
Not being a trained programmer, I was just wondering if it is good practice
to write all the code in the form code section or is it better to jump from
the form code to a module to do the work after clicking on a command button
on the form ??

--
Les


Being a self-taught (although Microsoft certified - FWIIW) trainer, I
usually tell people to place their shared code in the module, and
place form-specific code in the form. That way they can simply move
the form to another project without having to take the module as well.
Less code bloat and more modular are my catchcries.

- David



All times are GMT +1. The time now is 05:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com