R
Roderick O'Regan
I have a template with a shape in the header. At times I need to
delete that shape if it is going to be used with pre-printed
letterheads.
At present, I use:
Selection.Sections(1).Headers(wdHeaderFooterPrimary).Shapes.SelectAll
Selection.Delete
As this shape is the only one in the headers/footers it does what I
need.
However, now I need to have a logo (also a shape) in the footer which
needs to stay there all the time, even when the header shape is
deleted.
As the above routine deletes all the shapes, irrespective of their
header/footer location, could someone tell me, please, if there is a
way to delete just the header shape and leave the footer one intact?
Regards
Roderick
delete that shape if it is going to be used with pre-printed
letterheads.
At present, I use:
Selection.Sections(1).Headers(wdHeaderFooterPrimary).Shapes.SelectAll
Selection.Delete
As this shape is the only one in the headers/footers it does what I
need.
However, now I need to have a logo (also a shape) in the footer which
needs to stay there all the time, even when the header shape is
deleted.
As the above routine deletes all the shapes, irrespective of their
header/footer location, could someone tell me, please, if there is a
way to delete just the header shape and leave the footer one intact?
Regards
Roderick