Public vs Private/Dim in Excel VBA
问题 I could use some help in understanding using Public vs Dim in a module in Excel 2013 VBA. First I want to say I did find this great post with excellent definitions (see link below), but no examples and I could use some examples of how I could apply the Public Variables to my project. Also I am a little confused on when I would need to use the Option Private Module; would I need to use that on each module I have or just the module that holds the below code? stackoverflow descriptions