title: VBA Code quit working in Word 2010
body: <p>I don't know why, but this code has suddenly stopped working and I am looking for help in finding the reason why.</p>
  
  <pre><code>PictCount = ActiveDocument.Shapes.Count  ' This always returns 0
  PageCount = ActiveDocument.ActiveWindow.Panes(1).Pages.Count  ' This gives the correct number
  </code></pre>
  
  <p>This is on a page that several pictures have been copied/pasted onto. </p>