Deleting InlineShapes

S

Senad Isanovic

I'm trying to delete logo from the header in the doc. The logotype is there,
but when I'm running this code rs.InlineShapes.Count is 0. What's wring?
thanks!

Dim rs As Range
Set rs =
ActiveDocument.Sections(1).Headers(wdHeaderFooterPrimary).Range
If rs.InlineShapes.Count > 0 Then
rs.InlineShapes(1).Delete
End If
 
C

Chuck Henrich

It might be a Shape instead of an InlineShape - try testing for the Shapes
count.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top