Anybody know the code to delete the current section in a Word 2000 document.
I know the code for deleting section 1, 2, 3, etc. but I need the code for
the current section.

Thanks in advance.
Mickey

Re: Macro/Code to Delete Current Section by Helmut

Helmut
Wed Sep 12 07:10:16 CDT 2007

Hi Mickey,

Sub Test007()
Selection.Collapse ' just in case
Selection.Sections(1).Range.Delete
End Sub

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"

Re: Macro/Code to Delete Current Section by Keith

Keith
Thu Sep 20 11:11:34 CDT 2007

Micky,

Could you post your code for deleting specific sections (not the current one
but by section #)?

Thanks,

Keith

"Mickey" <Mickey@discussions.microsoft.com> wrote in message
news:AA20DB7C-45A5-4217-A3D0-1BDD3B6E83B5@microsoft.com...
> Anybody know the code to delete the current section in a Word 2000
document.
> I know the code for deleting section 1, 2, 3, etc. but I need the code for
> the current section.
>
> Thanks in advance.
> Mickey



Re: Macro/Code to Delete Current Section by fumei

fumei
Mon Sep 24 14:06:55 CDT 2007

ActiveDocument.Sections(2).Range.Delete

will delete Section 2.

This may, or may not, have unwanted effects on any headers and footers. It
depends on how they are set up and your use of SameAsPrevious.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.aspx/word-programming/200709/1