Microsoft Office Forums How to remove all pictures but keep text boxes

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-22-2015, 08:03 AM
gn4619 gn4619 is offline How to remove all pictures but keep text boxes Windows 7 64bit How to remove all pictures but keep text boxes Office 2010 32bit
Novice
How to remove all pictures but keep text boxes
 
Join Date: Apr 2015
Posts: 25
gn4619 is on a distinguished road
Default How to remove all pictures but keep text boxes

How to programmatically remove all pictures, but keep all text boxes (both inlineshapes and shapes) in a document? Is there a particular type for pictures? In some cases, the pictures are a group of pictures. Any help is appreciated.
Reply With Quote
  #2  
Old 10-22-2015, 12:55 PM
macropod's Avatar
macropod macropod is offline How to remove all pictures but keep text boxes Windows 7 64bit How to remove all pictures but keep text boxes Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 19,569
macropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to behold
Default

If you use code like:
.InlineShapes(i).Type
you can specify the kind of inline shape to process. For an enumeration, input:
WdInlineShapeType
in Word's VBE, search pane.

Similarly, for shapes, if you use code like:
.Shapes(i).Type
you can specify the kind of shape to process. For an enumeration, input
MsoShapeType
in Word's VBE, search pane.
__________________
Cheers,
Paul Edstein
[MS MVP - Word]
Reply With Quote
  #3  
Old 10-22-2015, 08:19 PM
gn4619 gn4619 is offline How to remove all pictures but keep text boxes Windows 7 64bit How to remove all pictures but keep text boxes Office 2010 32bit
Novice
How to remove all pictures but keep text boxes
 
Join Date: Apr 2015
Posts: 25
gn4619 is on a distinguished road
Default

Thanks. It helped a lot. I found the type for pictures is wdinlineshapepicture if the picture is one of inlineshapes.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remove all pictures but keep text boxes please help, need formating a .doc with simple fillable text boxes and picture boxes olson109 Word 5 03-12-2014 01:02 AM
How to remove all pictures but keep text boxes Tables, Text Boxes, and Pictures Need to Stay Where I Put Them CandySues Word 1 02-28-2014 02:45 PM
Taking pictures out of text boxes cryptogram Word 15 03-10-2013 04:01 AM
Word2010 check boxes and plain text content control boxes in same table fcsungard Word 5 06-01-2012 01:16 AM
Problem with Developer Form -- Check Boxes and Text Boxes PCC Word 1 05-16-2009 05:22 AM


All times are GMT -7. The time now is 07:30 PM.


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