Y
yourenotathomenow
I'm stuck with an application which won't put a tiltle or the date in
my letter templates. I've set up macros for each title, ie MR, MISS,
MS & MRS, the 'MR' one is below. I want to get rid of the 4 macros
and replace them with one, but before it runs I want a box from which
I can choose either MR, MISS, MS or MRS, then, when I've chosen, for
the macro to run, putting in the title I've chosen - and the date.
Sub mr
' mr Macro
'
'
Selection.TypeText Text:="MR "
Selection.MoveLeft Unit:=wdCharacter, Count:=3
Selection.MoveDown Unit:=wdLine, Count:=5
Selection.MoveRight Unit:=wdCharacter, Count:=6
Selection.InsertDateTime DateTimeFormat:="dd.MM.yyyy",
InsertAsField:= _
False, DateLanguage:=wdEnglishUK,
CalendarType:=wdCalendarWestern, _
InsertAsFullWidth:=False
Selection.MoveDown Unit:=wdLine, Count:=3
Selection.MoveRight Unit:=wdCharacter, Count:=5
Selection.TypeText Text:="MR"
End Sub
my letter templates. I've set up macros for each title, ie MR, MISS,
MS & MRS, the 'MR' one is below. I want to get rid of the 4 macros
and replace them with one, but before it runs I want a box from which
I can choose either MR, MISS, MS or MRS, then, when I've chosen, for
the macro to run, putting in the title I've chosen - and the date.
Sub mr
' mr Macro
'
'
Selection.TypeText Text:="MR "
Selection.MoveLeft Unit:=wdCharacter, Count:=3
Selection.MoveDown Unit:=wdLine, Count:=5
Selection.MoveRight Unit:=wdCharacter, Count:=6
Selection.InsertDateTime DateTimeFormat:="dd.MM.yyyy",
InsertAsField:= _
False, DateLanguage:=wdEnglishUK,
CalendarType:=wdCalendarWestern, _
InsertAsFullWidth:=False
Selection.MoveDown Unit:=wdLine, Count:=3
Selection.MoveRight Unit:=wdCharacter, Count:=5
Selection.TypeText Text:="MR"
End Sub