JeffGrant
Well-known Member
- Joined
- Apr 7, 2021
- Messages
- 558
- Office Version
- 365
- Platform
- Windows
Hi All,
my work book is some 45 sheets deep, 16 vba modules and some 20 odd userforms.
To clean up a lot of rubbish code and in attempt to avoid errors, I have created one module where all Public variables are declared in the same place. This has made life considerably easier to track because I dont have too many Module level or Sub level dim statements.
I have noticed a slowing in performance in doing this though.
In your opinion, is having variables listed in one spot like this a good programming practice?
I have also enlisted the help of the M-Z Tools application latetly, and that has surely cleaned up a lot of spagetti code mess.
Are there any adverse opionion to this application be fore I purchase it. I must admit that I do like what I have seen and used with it.
Thanks
my work book is some 45 sheets deep, 16 vba modules and some 20 odd userforms.
To clean up a lot of rubbish code and in attempt to avoid errors, I have created one module where all Public variables are declared in the same place. This has made life considerably easier to track because I dont have too many Module level or Sub level dim statements.
I have noticed a slowing in performance in doing this though.
In your opinion, is having variables listed in one spot like this a good programming practice?
I have also enlisted the help of the M-Z Tools application latetly, and that has surely cleaned up a lot of spagetti code mess.
Are there any adverse opionion to this application be fore I purchase it. I must admit that I do like what I have seen and used with it.
Thanks