|  | Landscape page as autotext? |  | |
| | | big john |  |
| Posted: Wed Sep 03, 2008 8:41 am Post subject: Landscape page as autotext? |  |
How can I save a landscape page with a header/footer and a field reference as an autotext to use as needed. -- Thanks! |
| |
| | | Graham Mayor |  |
| Posted: Wed Sep 03, 2008 9:01 am Post subject: Re: Landscape page as autotext? |  |
You can't, but you can probably save it as a document and insert it with an IncludeText field. The IncludeText field would have to come after a section break could be saved with the break as the autotext entry.
-- <>>< ><<> ><<> <>>< ><<> <>>< <>><<> Graham Mayor - Word MVP
My web site LINK Word MVP web site LINK <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
big john wrote:
| Quote: | How can I save a landscape page with a header/footer and a field reference as an autotext to use as needed. |
|
| |
| | | big john |  |
| Posted: Wed Sep 03, 2008 10:12 am Post subject: Re: Landscape page as autotext? |  |
I really need this as a button for a template. Can i do it that way, or do i need to do it as a macro? When i do it as a macro, it messes up the header in the pages after and all the footers go to lanscape. Is there a way to fix that problem? -- Thanks!
"Graham Mayor" wrote:
| Quote: | You can't, but you can probably save it as a document and insert it with an IncludeText field. The IncludeText field would have to come after a section break could be saved with the break as the autotext entry.
--
Graham Mayor - Word MVP
My web site LINK Word MVP web site LINK
big john wrote: How can I save a landscape page with a header/footer and a field reference as an autotext to use as needed.
|
|
| |
| | | big john |  |
| Posted: Wed Sep 03, 2008 10:31 am Post subject: Re: Landscape page as autotext? |  |
I need this button for a client to insert a landscape page with a header/footer with a field reference. It is to be used when the client has a need use a landscape page at the end of a portrait doc. -- Thanks!
"big john" wrote:
| Quote: | I really need this as a button for a template. Can i do it that way, or do i need to do it as a macro? When i do it as a macro, it messes up the header in the pages after and all the footers go to lanscape. Is there a way to fix that problem? -- Thanks!
"Graham Mayor" wrote:
You can't, but you can probably save it as a document and insert it with an IncludeText field. The IncludeText field would have to come after a section break could be saved with the break as the autotext entry.
--
Graham Mayor - Word MVP
My web site LINK Word MVP web site LINK
big john wrote: How can I save a landscape page with a header/footer and a field reference as an autotext to use as needed.
|
|
| |
| | | Suzanne S. Barnhill |  |
| Posted: Wed Sep 03, 2008 12:02 pm Post subject: Re: Landscape page as autotext? |  |
I don't see why this wouldn't be possible as AutoText provided the appropriate section breaks were included.
-- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA
"Graham Mayor" <gmayor@REMOVETHISmvps.org> wrote in message news:%23qJopRbDJHA.5316@TK2MSFTNGP04.phx.gbl...
| Quote: | You can't, but you can probably save it as a document and insert it with an IncludeText field. The IncludeText field would have to come after a section break could be saved with the break as the autotext entry.
--
Graham Mayor - Word MVP
My web site LINK Word MVP web site LINK
big john wrote: How can I save a landscape page with a header/footer and a field reference as an autotext to use as needed.
|
|
| |
| | | big john |  |
| Posted: Wed Sep 03, 2008 12:23 pm Post subject: Re: Landscape page as autotext? |  |
How would i do it? I tried saving it as an autotext, but it didn't carry the header/footer with it, only the paragraph mark. -- Thanks!
"Suzanne S. Barnhill" wrote:
| Quote: | I don't see why this wouldn't be possible as AutoText provided the appropriate section breaks were included.
-- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA
"Graham Mayor" <gmayor@REMOVETHISmvps.org> wrote in message news:%23qJopRbDJHA.5316@TK2MSFTNGP04.phx.gbl... You can't, but you can probably save it as a document and insert it with an IncludeText field. The IncludeText field would have to come after a section break could be saved with the break as the autotext entry.
--
Graham Mayor - Word MVP
My web site LINK Word MVP web site LINK
big john wrote: How can I save a landscape page with a header/footer and a field reference as an autotext to use as needed.
|
|
| |
| | | Suzanne S. Barnhill |  |
| Posted: Wed Sep 03, 2008 12:41 pm Post subject: Re: Landscape page as autotext? |  |
| |  | |
As noted, you have to include the section break, which stores the header/footer and other section-level formatting.
-- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA
"big john" <bigjohn@discussions.microsoft.com> wrote in message news:A553C009-B994-431A-A4B6-3A02B64738DA@microsoft.com...
| Quote: | How would i do it? I tried saving it as an autotext, but it didn't carry the header/footer with it, only the paragraph mark. -- Thanks!
"Suzanne S. Barnhill" wrote:
I don't see why this wouldn't be possible as AutoText provided the appropriate section breaks were included.
-- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA
"Graham Mayor" <gmayor@REMOVETHISmvps.org> wrote in message news:%23qJopRbDJHA.5316@TK2MSFTNGP04.phx.gbl... You can't, but you can probably save it as a document and insert it with an IncludeText field. The IncludeText field would have to come after a section break could be saved with the break as the autotext entry.
--
Graham Mayor - Word MVP
My web site LINK Word MVP web site LINK
big john wrote: How can I save a landscape page with a header/footer and a field reference as an autotext to use as needed.
|
|
| |
| | | Graham Mayor |  |
| Posted: Wed Sep 03, 2008 1:03 pm Post subject: Re: Landscape page as autotext? |  |
| |  | |
The following macro should work and preserve your headers. You need to insert the header where indicated
Sub InsertLandscapeSection() Dim oHead1 As HeaderFooter Dim oHead2 As HeaderFooter Dim oHead3 As HeaderFooter Dim sCurSection As String Dim sHeadText As String Dim sHead1Text As String sHeadText = "This is the landscape header" sCurSection = Selection.Information(wdActiveEndSectionNumber) Set oHead1 = _ ActiveDocument.Sections(sCurSection).Headers(wdHeaderFooterPrimary) oHead1.LinkToPrevious = False sHead1Text = oHead1.Range With Selection .InsertBreak Type:=wdSectionBreakNextPage .PageSetup.Orientation = wdOrientLandscape Set oHead2 = _ ActiveDocument.Sections(sCurSection + 1).Headers(wdHeaderFooterPrimary) oHead2.LinkToPrevious = False oHead2.Range.Text = sHeadText .InsertBreak Type:=wdSectionBreakNextPage .PageSetup.Orientation = wdOrientPortrait End With Set oHead3 = _ ActiveDocument.Sections(sCurSection + 2).Headers(wdHeaderFooterPrimary) oHead3.LinkToPrevious = False oHead3.Range.Text = sHead1Text oHead1.Range.Text = sHead1Text End Sub
LINK -- <>>< ><<> ><<> <>>< ><<> <>>< <>><<> Graham Mayor - Word MVP
My web site LINK Word MVP web site LINK <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
big john wrote:
| Quote: | I really need this as a button for a template. Can i do it that way, or do i need to do it as a macro? When i do it as a macro, it messes up the header in the pages after and all the footers go to lanscape. Is there a way to fix that problem?
You can't, but you can probably save it as a document and insert it with an IncludeText field. The IncludeText field would have to come after a section break could be saved with the break as the autotext entry.
--
Graham Mayor - Word MVP
My web site LINK Word MVP web site LINK
big john wrote: How can I save a landscape page with a header/footer and a field reference as an autotext to use as needed. |
|
| |
|
|