title: Replace() question mark in image dimensions string from Shell
body: <p>I'm trying to get the height of a bitmap by using the Shell object in VBA.</p>
  
  <p>Here is the relevant portion of code (<code>bmp</code> is a member of a custom class, and <code>.Width</code> is a property defined as an Integer.)</p>
  
  <pre><code>Set objImg = objShell.Namespace(subfs(sf)).ParseName(bmp.Name)
  tmpDim = objShell.Namespace(subfs(sf)).GetDetailsOf(objImg, 162)
  tmpDim = Replace(tmpDim, "?", "")
  tmpDim = Replace(tmpDim, " pixels", "")
  bmp.Width = CInt(tmpDim)
  </code></pre>
  
  <p>I'm getting a Type Mismatch error on the last line because the value of tmpDim is <code>?754</code>. For reference, the value of tmpDim after the second line is <code>?754 pixels</code>.</p>
  
  <p>I have a step to replace the <code>?</code> with an empty string, but it does not work. How can I get rid of the question mark character?</p>