This more of curiosity question. and just to let you know, I am new to VBA
What is difference between global and public variables?
I am working on a project that has multiple forms and modules. The variable needs to keep its value, once assigned, throughout the project. I noticed that the global variable does not seem to work well when I need to use the variable in different modules. If I declare the variable public, it works as I expected.
Thanks!
What is difference between global and public variables?
I am working on a project that has multiple forms and modules. The variable needs to keep its value, once assigned, throughout the project. I noticed that the global variable does not seem to work well when I need to use the variable in different modules. If I declare the variable public, it works as I expected.
Thanks!