Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-13-2011, 05:07 AM
AlmostFriday AlmostFriday is offline Delete all shapes but not the images - Possible? Windows XP Delete all shapes but not the images - Possible? Office 2007
Novice
Delete all shapes but not the images - Possible?
 
Join Date: Dec 2011
Posts: 8
AlmostFriday is on a distinguished road
Default

Thanks again Macropod



But...still deletes the pictures...

The code I am using is as follows:
Code:
Dim iShp As Word.Shape
    For Each iShp In ActiveDocument.Shapes
        With iShp
         If .Type <> msoLinkedPicture And .Type <> msoPicture Then .Delete
        End With
    Next
    For i = ActiveDocument.Shapes.Count To 1 Step -1
    ActiveDocument.Shapes(i).Delete
    Next i
I thought that this would be fairly straight forward, but, I'm starting to think its an impossible one...
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete all shapes but not the images - Possible? Mail Mege Images - Path Correct but Images Repeated Sonia Sosa Mail Merge 8 04-22-2011 03:05 PM
Delete all shapes but not the images - Possible? Where did map shapes go? SueK PowerPoint 1 01-20-2011 04:30 AM
delete email message via blackberry and have it delete on my pop3 and my outlook Iamthestorm Outlook 2 10-28-2010 12:21 AM
Delete all shapes but not the images - Possible? Find and add new Shapes bonani PowerPoint 1 11-26-2009 06:21 PM
My Shapes some appear some don't Jean-Paul Visio 0 03-01-2006 01:38 AM

Other Forums: Access Forums

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