Monday, May 14, 2012

how to delete header and footer except for watermarks

It is easy to delete whole header and footer by using delete command. But I want to delete everything from header/footer except watermarks(wordart) that falls in left half of the document. Kindly help. So far I am able to recognize the watermarks as below:



    For Each sec In worddoc.Sections
For Each hdr In sec.Headers
For Each sh In hdr.Shapes
If sh.Left > 200 Then
'Do something
End If
Next sh
Next hdr
Next sec


I request all you to kindly help me find solution for this. Thanks in advance.





No comments:

Post a Comment