{"id":1044,"date":"2013-07-02T04:27:52","date_gmt":"2013-07-02T04:27:52","guid":{"rendered":"http:\/\/pariswells.com\/blog\/?p=1044"},"modified":"2013-07-02T04:27:52","modified_gmt":"2013-07-02T04:27:52","slug":"delete-strip-all-images-out-of-word-document","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/random\/delete-strip-all-images-out-of-word-document","title":{"rendered":"Delete \/ Strip All Images out of Word Document"},"content":{"rendered":"\r\n<p>Recently I had a word document which when being merged would display random images on random pages in the Footer. I used Office 2010 to remove all the Footer and Header however it still came up with them.<\/p>\r\n<p>I then used the find and replace function to search for ^g ( Graphics ) pictures however these images wearn&#8217;t inline so it didn&#8217;t fine any.<\/p>\r\n<p>Thanks to the below trackback I was able to run the below Macro to remove all images from the Document , Inline and Out!<br \/><br \/><strong>Sub demo()<\/strong><br \/><br \/><strong>Dim oShp As Shape<\/strong><br \/><br \/><strong>Dim oIShp As InlineShape<\/strong><br \/><br \/><strong>For Each oShp In ActiveDocument.Shapes<\/strong><br \/><br \/><strong>oShp.Delete<\/strong><br \/><br \/><strong>Next<\/strong><br \/><br \/><strong>For Each oIShp In ActiveDocument.InlineShapes<\/strong><br \/><br \/><strong>oIShp.Delete<\/strong><br \/><br \/><strong>Next<\/strong><br \/><br \/><strong>End Sub<\/strong><br \/><br \/>Can be added via , Tools , Macro, Macro&#8217;s. Add the following code and click the play button and if it asks run demo!<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Recently I had a word document which when being merged would display random images on random pages in the Footer. I used Office 2010 to remove all [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[577,579,578],"class_list":["post-1044","post","type-post","status-publish","format-standard","hentry","category-random","tag-delete-all-images-word","tag-find-all-images-inside-of-word","tag-strip-all-images-word"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/1044","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=1044"}],"version-history":[{"count":2,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/1044\/revisions"}],"predecessor-version":[{"id":1046,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/1044\/revisions\/1046"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=1044"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=1044"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=1044"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}