Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-14-2011, 04:07 PM
macropod's Avatar
macropod macropod is offline ^g for all graphics, what about drawings only? Windows 7 32bit ^g for all graphics, what about drawings only? Office 2007
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Jay,



Assuming your drawing is a Word rectangle autoshape, you could use code like:
Code:
Sub Demo()
Dim Shp As Shape
With ActiveDocument
  For Each Shp In .Shapes
    If Shp.Type = msoAutoShape Then
      If Shp.AutoShapeType = msoShapeRectangle Then Shp.Delete
    End If
  Next
End With
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #2  
Old 06-15-2011, 11:34 AM
ghumdinger ghumdinger is offline ^g for all graphics, what about drawings only? Windows 7 ^g for all graphics, what about drawings only? Office 2010 (Version 14.0)
Advanced Beginner
^g for all graphics, what about drawings only?
 
Join Date: Jul 2010
Posts: 64
ghumdinger is on a distinguished road
Default

Hi Paul,

Thanks for giving it a shot. I've tried the code. It does not work. Perhaps the rectangle I'm dealing with is not an autoshape. I'm not sure how to tell.

Here's a sample of it:

Thanks & warm regards,
Jay
Attached Files
File Type: docx Sample of grey rec.docx (91.4 KB, 13 views)
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
^g for all graphics, what about drawings only? listing linked graphics eng1ne Drawing and Graphics 5 02-28-2012 06:42 AM
Combine is duplicating coments and graphics Ulodesk Word 4 05-04-2011 06:10 PM
Need To Lock Colors In Graphics bcicio PowerPoint 3 11-24-2010 07:47 AM
^g for all graphics, what about drawings only? Graphics resolution Roscoe Drawing and Graphics 5 07-02-2010 07:43 AM
find and replace graphics thegeester Drawing and Graphics 0 04-04-2010 04:36 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:59 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