title: Convert String To Property or Object (VBA)
body: <p>I am building an array in VBA for Powerpoint.</p>
  
  <p>The sub sweeps through all shapes in each slide in the presentation, and I want to store into the array:</p>
  
  <ol>
  <li>The property (as string or object)</li>
  <li>The value of that property.</li>
  </ol>
  
  <p>I will then load this array into a list box.
  When the user clicks on the selected item in the list box I want the property to be set with the value.</p>
  
  <p>In code it would be something like this:</p>
  
  <pre><code>Dim s_MyProperty as string
  Dim s_Value as string
  
  'Remember the variables
  s_MyProperty = ".PageSetup.SlideHeight"
  s_Value = ActivePresentation.PageSetup.SlideHeight
  
  ' This is the part I need help with
  ' Apply the property
  Dim o_Object as object ' or something similar
  o_Object = ActivePresentation
  o_Object &amp;  s_MyProperty = s_Value 
  </code></pre>
  
  <p>The code would be similar in Excel.</p>
  
  <p>Any ideas?</p>