Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.pagelayout
|
|||
|
|||
template - header setting gets reversed
We use a template in Word 2003 in which a header has to start on page
2. This template works fine on most of the computers in our office (~60, all XPSP2/Office 2k3). On two computers however the template gives the user a document with a header on the first page and no header on page 2 and the rest!?! It looks to me that the settings for the header made in the template gets reversed. What can cause this behaviour? Marc |
#2
Posted to microsoft.public.word.pagelayout
|
|||
|
|||
template - header setting gets reversed
Is the template set up with Header and First Page Header, or does it try to
use a section break? If the latter, the user is perhaps typing on the "wrong" side of the break? -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA Word MVP FAQ site: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. wrote in message oups.com... We use a template in Word 2003 in which a header has to start on page 2. This template works fine on most of the computers in our office (~60, all XPSP2/Office 2k3). On two computers however the template gives the user a document with a header on the first page and no header on page 2 and the rest!?! It looks to me that the settings for the header made in the template gets reversed. What can cause this behaviour? Marc |
#3
Posted to microsoft.public.word.pagelayout
|
|||
|
|||
template - header setting gets reversed
The template seems to use a section/page break. I found the following
code. Sub pagina2() Selection.InsertBreak Type:=wdPageBreak ActiveWindow.ActivePane.View.Type = wdPageView ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader Selection.ParagraphFormat.Alignment = wdAlignParagraphRight Selection.Font.Name = "Arial" Selection.Font.Size = 8 Selection.TypeText Text:="Blad " ActiveWindow.Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:="PAGE ", PreserveFormatting:=True Selection.TypeText ", brief d.d. " & strDatum & vbCr If strBetreft "" Then Selection.TypeText "Inzake " & strBetreft End If End Sub I think I can rule out 'typing on the wrong side'. If that was the case this problem would occure on every computer. |
#4
Posted to microsoft.public.word.pagelayout
|
|||
|
|||
template - header setting gets reversed
I would start from scratch, eliminating the code, and use the headers Word
provides for the purpose. In addition to the First Page Header and Header, you can also, by checking "Different odd and even" as well as "Different first page" (on the Layout tab of Page Setup) have an Odd Page Header and Even Page Header. For more on how to set this up, see http://sbarnhill.mvps.org/WordFAQs/Letterhead.htm and http://sbarnhill.mvps.org/WordFAQs/HeaderFooter.htm Let me emphasize that even a single-page template can contain up to three headers. Even though they can't be seen until pages are added, Word will remember the headers you have created. -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA Word MVP FAQ site: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. wrote in message oups.com... The template seems to use a section/page break. I found the following code. Sub pagina2() Selection.InsertBreak Type:=wdPageBreak ActiveWindow.ActivePane.View.Type = wdPageView ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader Selection.ParagraphFormat.Alignment = wdAlignParagraphRight Selection.Font.Name = "Arial" Selection.Font.Size = 8 Selection.TypeText Text:="Blad " ActiveWindow.Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:="PAGE ", PreserveFormatting:=True Selection.TypeText ", brief d.d. " & strDatum & vbCr If strBetreft "" Then Selection.TypeText "Inzake " & strBetreft End If End Sub I think I can rule out 'typing on the wrong side'. If that was the case this problem would occure on every computer. |
#5
Posted to microsoft.public.word.pagelayout
|
|||
|
|||
template - header setting gets reversed
I'm afraid I can't start from scratch. The template starts with a
dialog in which information about the recipient and the sender has to be entered. The sender can be one of the many different organizational units we have. The code goes from there and gives the letter its appropriate look. There is a lot of code involved and I'm not the one that made this template ... |
#6
Posted to microsoft.public.word.pagelayout
|
|||
|
|||
template - header setting gets reversed
I found out that when I mark out the first line of the above code
(Selection.InsertBreak Type:=wdPageBreak) I get the exact problem. Now I have to find out why this bit of code doesn't work on two computers. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Global/Master Template | New Users | |||
MS Word should support inheritence with regard to templates | Microsoft Word Help | |||
Setting default headers and fonts in a template | Microsoft Word Help | |||
Header & Footer not on first page but on subsequent pages | Microsoft Word Help | |||
Templates | Page Layout |