Google Answers Logo
View Question
 
Q: MS Word: How to delete all pictures from a document ( Answered 5 out of 5 stars,   1 Comment )
Question  
Subject: MS Word: How to delete all pictures from a document
Category: Computers > Software
Asked by: rambler-ga
List Price: $8.00
Posted: 01 Jul 2006 06:25 PDT
Expires: 31 Jul 2006 06:25 PDT
Question ID: 742572
Everyday, I produce an MS Word document containing the day's TV listings.

In order to minimize printing, I delete all the TV network icons (the CBS 'eye',
the NBC peacock, etc). However, I have to do this one by one, and it's quite
tedious.

Is there a way to delete all these icons at once?

Request for Question Clarification by hummer-ga on 01 Jul 2006 09:53 PDT
Hi rambler,

To disable graphics, try this:

1. Document settings: 
Click View / Print layout
2. Program settings: 
Click Tools / Options   
Go to View tab
a. Check Picture Placeholders checkbox
b. In the Print & Web layout options section
Uncheck Drawings & Objects anchors boxes
Go to Print tab
b. Include with document: 
Uncheck Drawing objects box

For help, you can look at this website, but the directions are for
enabling graphics rather than disabling.
http://www.rivier.edu/staff/acallahan/webpages/Word/graphicsnotprinting.htm

I hope that helps!
hummer

Request for Question Clarification by hammer-ga on 01 Jul 2006 14:54 PDT
Rambler,

Try this code on a copy of your document. See if it deletes what you
don't want and leaves what you do want.

Sub DitchPictures()
Dim objPic As InlineShape

    For Each objPic In ActiveDocument.InlineShapes
        objPic.Delete
    Next objPic
    
End Sub


- Hammer

Clarification of Question by rambler-ga on 01 Jul 2006 15:41 PDT
Your code works beautifully. Please post your answer.
Answer  
Subject: Re: MS Word: How to delete all pictures from a document
Answered By: hammer-ga on 01 Jul 2006 16:19 PDT
Rated:5 out of 5 stars
 
Rambler,

Try this code on a copy of your document. See if it deletes what you
don't want and leaves what you do want.

Sub DitchPictures()
Dim objPic As InlineShape

    For Each objPic In ActiveDocument.InlineShapes
        objPic.Delete
    Next objPic
    
End Sub


- Hammer


Search strategy
---------------
Searching for 'word delete pictures' led me to the information that
the pictures in a Word document are accessed through the InlineShapes
collection. Once I knew this, I was able to write the VBA to find and
delete them.
rambler-ga rated this answer:5 out of 5 stars and gave an additional tip of: $2.00
Exactly the information I needed.

Comments  
Subject: Re: MS Word: How to delete all pictures from a document
From: domlondon-ga on 19 Sep 2006 12:09 PDT
 
Eveb SImpler

Do to EDIT

Then REPLACE

Then click MORE

Then click SPECIAL

Choose GRAPHIC

Then cluck OK

Job done;-)

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy