Hello, I have a template that on opening brings up a dialog box giving options.
Depending on the option selected the macro outputs the required footer.
The problem is that I only want the footer to be output on the front page. At the moment the code is going to the current page (2 maybe 3) and outputting, to all sheets except the front sheet.
I am currently using this code:
[VBA]Select Case True
Case Is = Me.optBrighton
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageFooter
Selection.MoveDown Unit:=wdLine, Count:=9
Selection.Range.Text = "67 Old kent Road DX1111 London 1 Registered in England No 11111"
Selection.EndKey Unit:=wdLine, Extend:=wdExtend
With Selection
.Font.Size = 8
.Paragraphs.Alignment = wdAlignParagraphLeft
End With
Selection.MoveDown Unit:=wdLine, Count:=1
Selection.TypeParagraph
Selection.Range.Text = "Tel: 0161 585265 Fax:0161 555555 Email: info@test.co.uk Registered Office: Old kent road, London, UK"
Selection.EndKey Unit:=wdLine, Extend:=wdExtend
With Selection
.Font.Size = 8
.Paragraphs.Alignment = wdAlignParagraphLeft
End With
ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument
Case Is = Me.OptManchester
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageFooter
Selection.MoveDown Unit:=wdLine, Count:=9
Selection.Range.Text = "Picadilly, London L56 8RF Registered in England No 22222"
Selection.EndKey Unit:=wdLine, Extend:=wdExtend
With Selection
.Font.Size = 8
.Paragraphs.Alignment = wdAlignParagraphLeft
End With
Selection.MoveDown Unit:=wdLine, Count:=1
Selection.TypeParagraph
Selection.Range.Text = "Tel: 0161 855559 Fax:0178 3333333 Email: info@test.co.uk Registered Office: old kent road, London, UK"
Selection.EndKey Unit:=wdLine, Extend:=wdExtend
With Selection
.Font.Size = 8
.Paragraphs.Alignment = wdAlignParagraphLeft
End With
ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument
End Select[/VBA]
PLEASE HELP!