It appears that if I DIM a variable in the globals section, then I cannot create local variables of the same name and have them actually created as local variables. It would be nice if the compiler balked when encountering these additional DIMs.
I'd like commentary on this phenomenon.
I originally tested numerous modules separately and discovered this situation when I integrated them into one program. By the way, what are the pros/cons of creating code modules?
I don't think this is an error. Once a variable is global it is known to all code. You can re-dim these globals at any point and in any sub, so the compiler has no reason to complain. So if you started with an array of 5,000 and later wanted to release memory, you could now re-dim to 100 elements and the OS would clear the resources.