title: VBA - Dynamically create Public Type variables?
body: <p>Quick question, I've got all of these statically set <code>Public Type</code> variables in my macro code.  These are supposed to represent the values of an INI file. The way I would like it to be is that the code is all dynamic, based on what's in the INI file. So I don't need to manually update both the INI file and the code behind. </p>
  
  <p>This is an outtake of the code the way it is now. This is inside it's own module:</p>
  
  <pre><code>Public Type Fields
       Firstname as String
       Lastname as String
       Username as String
  End Type
  </code></pre>
  
  <p>I was thinking of reading the entire section of the INI file using <code>ReadIniSection</code>, but it seems as though it's not possible to do this within a <code>Public Type</code>. Am I correct? Could it be possible to get around this somehow?</p>