Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I delete pictures from word document ?

Status
Not open for further replies.

mudstuffin

Technical User
Sep 7, 2001
92
GB
hello.

I have a large word document that has a lot of pictures in it, and I wish to delete them from the document. Has anyone got a sub that will do this (or can quickly whip one up)? I've got one that I use to remove headers and footers but I cannot figure it out for pictures.

Many Thanks in advance.


Greg.
 
Hi Greg
Something like this might do the trick

Code:
Sub tle()
Dim pic As Shape
For Each pic In ThisDocument.Shapes
    If pic.Name Like "Picture*" Then
        pic.Delete
    End If
Next
End Sub

;-)

If a man says something and there are no women there to hear him, is he still wrong? [ponder]
The faqs ma'am, just the faqs. Get the best from these forums : faq222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top