murphy84
08-16-2007, 03:11 AM
I've found a common problem with word and wondered if anyone had a workaround in vba for it.
I'm attempting to remove the last section break in a document but without removing the headers/footers associated to that section. Unfortunately performing the following...
Selection.Collapse Direction:=wdLine, Count:=1
Selection.Delete
Removes the headers and footers completely.
I'm going to be stubborn in that I don't think I should have to copy the footer and paste it back in after removing the section break - there must be a simpler way!
Has anyone found a solution to this? Any help is much appreciated.
Thanks
I'm attempting to remove the last section break in a document but without removing the headers/footers associated to that section. Unfortunately performing the following...
Selection.Collapse Direction:=wdLine, Count:=1
Selection.Delete
Removes the headers and footers completely.
I'm going to be stubborn in that I don't think I should have to copy the footer and paste it back in after removing the section break - there must be a simpler way!
Has anyone found a solution to this? Any help is much appreciated.
Thanks