title: Word Macro Run-time error '70': Permission denied
body: <p>I have a macro that deletes Charts, MS Tables, Excel copied tables &amp; images in MS Word</p>
  
  <pre><code>Sub deleteNoise()
      Dim i As Integer
  
      With ActiveDocument
          For i = .Tables.Count To 1 Step -1
              .Tables(i).Delete
          Next i
          ActiveDocument.Shapes.SelectAll
          Selection.Delete
      End With
  End Sub
  </code></pre>
  
  <p>It worked fine. Until I saved the file and tried to run it, now it only deletes tables and when it gets to an image I get the following error.</p>
  
  <blockquote>
    <p>Run-time error '70': Permission denied</p>
  </blockquote>