![]() |
#1
|
|||
|
|||
![]()
I am trying to create a macro to delete lines (the length of the line varies, but, the width is always set to 0 cm) that have been added to a page, but, every variance I put in, still deletes all the shapes including pictures that I want left in.
I am using the following code: Dim iShp As Word.Shape For Each iShp In ActiveDocument.Shapes With iShp If iShp.Width = 0 Then iShp.Delete End If End With Next For i = ActiveDocument.Shapes.Count To 1 Step -1 ActiveDocument.Shapes(i).Delete Next i Is there a way round this so the pictures/illustrations are left in? |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Sonia Sosa | Mail Merge | 8 | 04-22-2011 03:05 PM |
![]() |
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 |
![]() |
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 |