David ~ Thank you for your response. Keep in mind that I am a complete
newbie when it comes to vba. The macro that I have was "recorded", but here
is the code it created:
Sub HMInsertDraftGray()
'
' HMInsertDraftGray Macro
' Inserts HM Gray Draft Stamp
'
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
Application.DisplayAutoCompleteTips = True
NormalTemplate.AutoTextEntries("HMGrayDraft").Insert Where:=Selection. _
Range, RichText:=True
ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument
End Sub
The macro goes into the document header and inserts the AutoText entry then
leaves the document header.
What I would ultimately like for the macro to do is to insert the AutoText
entry called "HMGrayDraft" and then go into the text box that contains the
AutoText entry and find the bookmark called DraftDate and insert a date that
looks like this 3/11/2009 11:00 AM and asks the user if the date should be
inserted as a code (updates automatically) or text (static). If I can't get
it to prompt the user, I could always do two subs one for each date type and
add both options to a fly out menu.
Hope this helps! Again, thank you for your assistance.