mmmreece
10-08-2017, 01:43 PM
I have a word 2007 document which has 2 macros in it. The first is to go to the end of the document on open
Selection.Endkey Unit:=wdstory
The second is
Sub dttimestmp()
'
' dttimestmp Macro
'
'
Selection.TypeParagraph
With Selection.Font
.Name = "Calibri(Body)"
.Bold = True
.Size = "12"
End With
Selection.InsertDateTime DateTimeFormat:="ddd MMMM dd, yyyy H:mm", InsertAsField:=False
With Selection
.Font.Bold = False
.Font.Size = "10"
End With
Selection.TypeParagraph
End Sub
which just enters a datestamp and sets formatting etc...
The problem I'm having in Word 2007 is that when I use the keyboard shortcut CTRL+Shift+A to run the macro Word 2007 automatically starts trying to set up Outlook 2007.
Any ideas why this should be?
And if so, how can I stop it?
Selection.Endkey Unit:=wdstory
The second is
Sub dttimestmp()
'
' dttimestmp Macro
'
'
Selection.TypeParagraph
With Selection.Font
.Name = "Calibri(Body)"
.Bold = True
.Size = "12"
End With
Selection.InsertDateTime DateTimeFormat:="ddd MMMM dd, yyyy H:mm", InsertAsField:=False
With Selection
.Font.Bold = False
.Font.Size = "10"
End With
Selection.TypeParagraph
End Sub
which just enters a datestamp and sets formatting etc...
The problem I'm having in Word 2007 is that when I use the keyboard shortcut CTRL+Shift+A to run the macro Word 2007 automatically starts trying to set up Outlook 2007.
Any ideas why this should be?
And if so, how can I stop it?