Claudia has attended:
Excel VBA Intro Intermediate course
Excel VBA Intro Intermediate course
Coding conventions and project structure conventions
When writing code, the best conventions for storing private and public variables, make it easier to call procedures. When passing codes to colleagues, everyone will understand the conventions.
RE: Coding conventions and project structure conventions
Hi Claudia
Thank you for your question
Writing code so that it is easily understood is a common challenge, and the following guidelines will help.
1. Always use naming conventions when declaring variables. For instance an integer variable might be prefixed with "int" a string "str" and son on. This makes it easier to understand what is happening to the code as it runs.
2. Give procedures meaningful names, so that it is clear what actions they are carrying out.
3. Always indent your code properly. Every line of code should be indented once within the procedure, and then always indent code within a loop, decision structure or with block. This allows the structure of your code to be more apparent.
4. Finally, use remarks liberally.Every major line of code should have explanatory remarks associated with it. When in doubt, annotate it.
Hope this helps
Regards
Stephen