Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-30-2020, 08:49 AM
alex100 alex100 is offline Remove image placeholders Windows 7 64bit Remove image placeholders Office 2016
Advanced Beginner
Remove image placeholders
 
Join Date: May 2020
Posts: 79
alex100 is on a distinguished road
Default Remove image placeholders

In case Word is not able to retrieve an image when you paste an article from the web (because of a bad connection, for example), it will instead insert a placeholder on that location.



I am trying to remove these, and so far I have the code below, but it's far from working as it should...

Code:
For Each oShape In ActiveDocument.Shapes
    If oShape.AutoShapeType = msoShapeRectangle Then
        oShape.Delete
    End If
Next
It does remove some of the placeholders, but not all of them, as some will be left behind.

Then, how can I execute the code for the current selection only, instead of the entire document?

Thank you!

Alex
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Placeholders Marina Word 9 12-17-2019 03:28 PM
How do I animate so: small image ==> large image ==> text over overlaid ==> back to next image ship69 PowerPoint 0 09-27-2019 12:55 PM
Remove image paths from Word to PDF convertion gwk1975 Word 0 07-30-2014 05:02 AM
Description of Uses/Differences in Placeholders CathClaud Mail Merge 6 06-23-2014 06:31 PM
Remove image placeholders Removing Placeholders When printing DeadBatteries Word 3 08-23-2012 01:08 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:34 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft