Reply
 
Thread Tools Display Modes
  #1   Report Post  
Jackie
 
Posts: n/a
Default Removing a section from a document

I want to write a macro to allow users to remove the first section of a
document (a drafting sheet). Any tips on the best way to do this to
retain the headers/footers on the sections which are left - and also is
there a way of 'instructing' Word to remove a particular section rather
than just highlighting and deleting the text and section breaks.

  #2   Report Post  
Greg
 
Posts: n/a
Default

I suppose that I would start with something like this:

Sub ScratchMacro()
With ActiveDocument
.Sections(2).Headers(wdHeaderFooterPrimary).LinkTo Previous = False
.Sections(1).Range.Delete
End With
End Sub

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete section breaks at end of word document Chris O. Page Layout 7 October 4th 06 09:24 AM
how do I collapse and expand a section of a word document? Leland Microsoft Word Help 1 August 21st 05 11:08 PM
How to have NO page numbers in one section of a document? Sam Microsoft Word Help 3 July 29th 05 04:37 PM
How do I number the middle section of a document starting as page. Jane H. Microsoft Word Help 4 January 12th 05 03:59 PM
FIrst page footers Noel S Pamfree Microsoft Word Help 7 December 6th 04 08:49 PM


All times are GMT +1. The time now is 09:28 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"