• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar

Mechanicaleng blog

siemens nx tutorial & injection molding technology

  • Plastic molding
  • Siemens nx
    • nx modeling
    • nx drafting
    • nx sketching
    • nx assembly
  • Mechanical basic
    • mechanical standard
    • Mechanism video
  • microsoft office
    • microsoft word
    • powerpoint
    • excel tips
  • About me
  • CONTACT ME
Home » microsoft office » microsoft word » 2 ways to delete all photos in word document

2 ways to delete all photos in word document

March 12, 2021 by mechanicaleng blog 2 Comments

In this tutorial, I will guide to you 2 ways to delete all photos in word document. We will delete all pictures by find and replace tool; VBA code.
Surely we are familiar with the operations of adding, removing, editing, and deleting when working with Word. But in case when you copy a web page, you accidentally paste it into Word browser both the content and advertising images of that website. In simple terms, you just want to keep the content and remove all the images. Deleting photos is very simple, you can click on each photo and delete them one by one. But I revealed to you that there is a way for you to delete all the pictures in a Word document at once. Let’s find out for more details.

May you like:  How to get pictures from word document?

I. Delete all photos in word document by using Replace tool.

1: Open the file contains photos to batch delete.

Delete all photos in word document by using Replace tool 1

2: Select tab Home, then look to the right at the Editing section, choose Replace.

Delete all photos in word document by using Replace tool 2

3: Find and Replace dialog box appears. At this point click on More > >

Delete all photos in word document by using Replace tool 3

Look down at the Special button, click to find Graphic. Click on Graphic to choose. At this part Word will automatically find all graphics contained in the document.

Delete all photos in word document by using Replace tool 4

4: After that, choose Replace all to automatically delete all photos in batch.

Delete all photos in word document by using Replace tool 5

A dialog box will appear saying the replacements have been complete. Press OK to exit.

Delete all photos in word document by using Replace tool 6

And this is the result with no photos in it.

Delete all photos in word document by using Replace tool 7

II. Using VBA code.

This method is less popular and requires more knowledge in computer science but it’s okay, the implementation is very simple.
Step 1: First you also open Word file contains photos. Then press Alt + F11 to open Microsoft Visual Basic for Application box.

Delete all photos in word document by VBA code 1

Step 2: In the main tab, click Insert then choose Module.

Delete all photos in word document by VBA code 2

Step 3: A blank dialog box will appear. Now all you have to do is copy this code below and paste into the box.
Sub DitchPictures()
Dim objPic As InlineShape
For Each objPic In ActiveDocument.InlineShapes
objPic.Delete
Next objPic
End Sub

Delete all photos in word document by VBA code 3

Step 4: Then press this little green triangle shape or F5 to start deleting photos.

Delete all photos in word document by VBA code 4

One second is all it takes and you can go back to Word to see the results. All photos have been deleted.

Delete all photos in word document by VBA code 5

 

CONCLUSION
That’s it, deleting photos in batch with these simple and easy steps will definitely help you a lot. In my opinion, it is necessary to know this because if you have to work a lot with Word, editing is probably inevitable and requires frequent manipulation. Hope that after this article, you will have some more experiences when working on Word.
Stay tuned for the next interesting articles. Thanks and good luck.

—————————

Author-hhchi

 

 

Related posts:

remove hyperlinks in word document by Visual Basic 13 ways to remove hyperlinks in word document remove background color in word6 ways to remove background color in word Convert a Word file to image by screenshot in Word3 ways to convert a Word file to image how to delete text in word 2016how to delete text in word 2016

Filed Under: microsoft word Tagged With: word tips

Reader Interactions

Comments

  1. Peter Cholakis says

    January 18, 2022 at 12:48 am

    Doesn’t work.

    Reply
    • mechanicaleng blog says

      January 26, 2022 at 10:39 pm

      what is your problem?

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Recent Posts

  • what is spur gear | introduction
  • Mechanical engineering skills from training process
  • What is Inox | Stainless Steel?
  • How to create thread in nx
  • nx assembly| create a new part from the same part
  • how to calculate sum of squares in Excel
  • How to active GC toolkits in Siemens NX
  • How to create a sphere in nx
  • How to create a cone in nx
  • How to create a cylinder in nx

Copyright © 2023 · Magazine Pro on Genesis Framework · WordPress · Log in