Re: Inserting blank page into document
From: Jezebel (frolly_at_mkkk.com)
Date: 04/07/04
- Next message: JamesW: "Re: Printing to Multiple Trays Problem"
- Previous message: Jezebel: "Re: statistics value in VBA word"
- In reply to: rlampky: "Inserting blank page into document"
- Next in thread: Doug Robbins - Word MVP: "Re: Inserting blank page into document"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 7 Apr 2004 17:38:23 +1000
Instead of a page break insert a new page section break. Then change the
headers and footers in the last section --
.LinkToPrevious = FALSE
.Range.Text = "" (or whatever you want)
"rlampky" <rlampky@NOSPAM.hotmail.com> wrote in message
news:uFRhjbGHEHA.2744@TK2MSFTNGP10.phx.gbl...
> Cross posted to vba.beginners and word.formatting.longdoc
>
> I am using the following Macros to locate the end of the active document
and
> then inserting a page break prior to inserting an Autotext entry in a word
> document. The prior sections are protected forms.The insert section
selected
> by the gotoend macro is an unprotected section.
>
> ? how do I cause the new page to open without the headers or footers of
the
> current document
>
> Sub gotoend()
> '
> ' gotoend Macro
> ' Macro created 4/6/2004 by rjaco
> '
> Selection.GoTo What:=wdGoToBookmark, Name:="end"
> With ActiveDocument.Bookmarks
> .DefaultSorting = wdSortByName
> .ShowHidden = False
> End With
>
>
> End Sub
>
> Sub Macro2()
> '
> ' Macro2 Macro
> ' Macro recorded 4/6/2004 by rjaco
> '
> Application.Run MacroName:="gotoend"
> Selection.InsertBreak Type:=wdPageBreak
> ActiveDocument.AttachedTemplate.AutoTextEntries("test").Insert Where:=
_
> Selection.Range, RichText:=True
> End Sub
>
>
- Next message: JamesW: "Re: Printing to Multiple Trays Problem"
- Previous message: Jezebel: "Re: statistics value in VBA word"
- In reply to: rlampky: "Inserting blank page into document"
- Next in thread: Doug Robbins - Word MVP: "Re: Inserting blank page into document"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|