In one module in my PERSONAL, I have around 20 different macros for working with pivot tables. In each one I have a "Dim PT as PivotTable", "Dim PF as PivotField", etc. I thought it might better to declare all of these at the top of my module rather than individually in each macro, but I'm confused on the best way to do that.
From what I've read, Dim is more "private", vs Public, which is more "public" (see http://www.vbforums.com/showthread.p...l-Static-Const).
See the examples below. Would it serve me better to have all of the bottom four as PUBLIC, or as DIM?
And how about for any add-ins I build for my users; what's the best way to go there?
Bookmarks