dparteka
Member
This may be a shot in the dark because it's an Outlook macro issue. Below are two sets of code that deletes text boxes, the first one works in MS Excel and the second in MS Word. The only difference between the two is the third line after "Active". I'm trying to duplicate this action in MS Outlook in a new-opened email but lack the knowledge of the proper code terminology... is there anyone out there that knows this... thank you, Dennis.
Code:
Sub RemoveTextBox()
Dim shp As Shape
For Each shp In ActiveSheet.Shapes
If shp.Type = msoTextBox Then shp.Delete
Next shp
End Sub
Sub RemoveTextBox()
Dim shp As Shape
For Each shp In ActiveDocument.Shapes
If shp.Type = msoTextBox Then shp.Delete
Next shp
End Sub