Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 04-18-2020, 12:51 PM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Copy everything except pictures? Windows 10 Copy everything except pictures? Office 2019
Moderator
 
Join Date: Aug 2011
Posts: 4,050
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

You could make a copy of the document and then run a macro which removes all images, shapes and objects.


Code:
Sub RemoveAllObjectsFromFile()
'Macro created by Stefan Blom, MVP, April 2020
Dim ShapeCount As Long
Dim InlineShapeCount As Long
Dim i As Long
Dim j As Long
ShapeCount = ActiveDocument.Shapes.Count
InlineShapeCount = ActiveDocument.InlineShapes.Count
For i = ShapeCount To 1 Step -1
ActiveDocument.Shapes(i).Delete
Next i
For j = InlineShapeCount To 1 Step -1
ActiveDocument.InlineShapes(j).Delete
Next j
End Sub
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I change multiple pictures in Word 2016 to all new pictures that appear in a specified order? chaz Word VBA 7 07-11-2018 03:57 AM
Copy everything except pictures? Printer issue (and copy/paste): some pictures/text are not printed/showed Jazz43 Drawing and Graphics 15 08-29-2016 04:17 AM
Copy everything except pictures? copy a page or pages in word with inserted pictures. datakop Word 2 04-03-2015 06:15 AM
PowerPoint Macro - Copy and Replace pictures from one PPT to another PPT mrayncrental PowerPoint 2 06-09-2014 02:52 AM
Copy picture style to all pictures in a presentation Gary Drumm PowerPoint 2 04-18-2013 10:36 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:20 PM.


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