L
LDMueller
In Word 2003, I have a basic macro which goes to Page 2, then inserts a
header. At this point I need a popup or something to prompt for a font
change. My sample code is as follows. Can anyone assist me? Thanks!
Sub Header()
'Go to page 2
Selection.GoTo What:=wdGoToPage, Which:=wdGoToNext, Name:="2"
Selection.Find.ClearFormatting
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
End With
'Insert header
If ActiveWindow.View.SplitSpecial <> wdPaneNone Then
ActiveWindow.Panes(2).Close
End If
If ActiveWindow.ActivePane.View.Type = wdNormalView Or ActiveWindow. _
ActivePane.View.Type = wdOutlineView Then
ActiveWindow.ActivePane.View.Type = wdPrintView
End If
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
Selection.TypeText Text:="Prompt for font"
ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument
End Sub
header. At this point I need a popup or something to prompt for a font
change. My sample code is as follows. Can anyone assist me? Thanks!
Sub Header()
'Go to page 2
Selection.GoTo What:=wdGoToPage, Which:=wdGoToNext, Name:="2"
Selection.Find.ClearFormatting
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
End With
'Insert header
If ActiveWindow.View.SplitSpecial <> wdPaneNone Then
ActiveWindow.Panes(2).Close
End If
If ActiveWindow.ActivePane.View.Type = wdNormalView Or ActiveWindow. _
ActivePane.View.Type = wdOutlineView Then
ActiveWindow.ActivePane.View.Type = wdPrintView
End If
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
Selection.TypeText Text:="Prompt for font"
ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument
End Sub