title: Why Doesn't a Global Var Declared in one VB6 project Compile in Another Project in same VB6 Project Group?
body: <p>I apologize that this is such an elementary question.  </p>
  
  <p>Our VB6 project group contains 6 projects plus the UI project containing all the app's forms.  </p>
  
  <p>We generate a uniqueID (gstrUniqueImportUuid) in the code behind one of the forms, which must be exposed to a class in another project in the project group.</p>
  
  <p>I've tried declaring this variable as a global variable in the Common.bas module that's part of the main UI project, like this:</p>
  
  <pre><code>Option Explicit
  Public gstrUniqueImportUuid As String
  </code></pre>
  
  <p>I then assign a value to gstrUniqueImportUuid in the form, which works fine.  </p>
  
  <p>But then when I try to use that global variable's value in one of the other projects in the group, that project won't compile--"variable not defined".  </p>
  
  <p>What on earth am I doing wrong? </p>
  
  <p>Thank you.</p>