OK, I'm cleaning up somebody else's code where the variable declarations are kind of a mess. None of the modules is Option Explicit, and there are a couple of places where the same variable is declared in multiple modules. So, my question is this: If a variable (let's call it vVar) is declared as private in the declarations of one module, and Public in another module, does the private declaration take precedence within the module it's declared in? Might be easier with an example:
VB Code:
  1. 'In Module1
  2. Public vVar As Variant
  3.  
  4. Public Sub Example()
  5.  
  6.     vVar = 1
  7.     Call OtherModule
  8.  
  9. End Sub
VB Code:
  1. 'In Module2
  2. Private vVar As Variant
  3.  
  4. Public Sub OtherModule()
  5.  
  6.     'Is vVar 1 or empty here?
  7.  
  8. End Sub
Hope that made sense.