This is not nearly as straightforward as you might think. The difficulty is
that the section-level formatting (margins, headers/footers, columns, paper
sources, etc.) is stored in the section mark at the _end_ of the section.
The article
http://www.word.mvps.org/FAQs/Format...thSections.htm
explains some of the hiccups you can run into by deleting a section break.
In code, you can run the command
wordDoc.Sections(N).Range.Delete
but the effects will be different depending on whether the Nth section is
the last one in the document. You may also need to adjust the formatting and
the content of the headers in the following section(s).
It might be more effective to set the entire section to the Hidden font
format rather than deleting it.
--
Regards,
Jay Freedman
Microsoft Word MVP FAQ:
http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
Keith G Hicks wrote:
> I should make it clear that I want to delete the whole section -
> content, headers, footers, etc. - not just the section break.
>
> Keith
>
> "Keith G Hicks" <(E-Mail Removed)> wrote in message
> news:eu9oe95#(E-Mail Removed)...
>> word 03
>> access 2k
>>
>> I need to programatically delete an entire section from a document
>> in the event that section does not apply to a customer. How would I
>> do this in vba?
>>
>> Thanks,
>>
>> Keith