For many years we have usewd code to remove a graphic and watermarks from drtaft reports when they are finalised. However, since installing Office 2010 some of the code refuses to behave.
In this code:
If ActiveDocument.Shapes(“Picture 9”) = True Then
Selection.ShapeRange.Delete
Else
Having manually, by recording a macro, identified the shapes we wish to delete the code is ignored when run.
If I run this code:
ActiveDocument.Shapes.SelectAll
Selection.ShapeRange.Delete
it works fine!
This is causing great frustration and is hugely tmie wasting.
This is very closely aligned to my last post http://windowssecrets.com/forums/showthread//141489-Identifying-objects-in-Word-to-format-or-delete