Skip to content

[Computer tips] Delete all graphics in a Word document

November 20, 2009

I am compiling news for Dotchuoinon and do not want to manually delete all the graphics in a word file. So I search the Net and found this nifty code:

Sub DitchPictures()
Dim objPic As InlineShape

    For Each objPic In ActiveDocument.InlineShapes
    Next objPic

End Sub

How to work it out?

(1) Go to Tools -> Macro -> Visual Basics Editor
(2) Make a new Macro and paste the code in.
(3) Save.

Now, to run, simply go to Tools -> Macro and run this saved Macro. It works wonders 🙂

No comments yet

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: