P
Patricia D
Help - I can't get rid of this question. Using an AutoExec module, there is
a subroutine to ensure that the Normal style has correct font and font size
as per our company standards.
However, this gives rise to the 'Save changes to Document 1?' question on
exit from Word - even when changes are not made. The
"ActiveDocument.AttachedTemplate.Saved = True" code was my attempt to get rid
of the pesky message!
Sub SetNormalStyle()
If (ActiveDocument.Styles(wdStyleNormal).Font.Size = 11 And _
ActiveDocument.Styles(wdStyleNormal).Font.Name = "Arial") Then GoTo
EndLabel
With ActiveDocument.Styles(wdStyleNormal)
.AutomaticallyUpdate = False
.BaseStyle = ""
.NextParagraphStyle = "Normal"
End With
With ActiveDocument.Styles(wdStyleNormal).Font
.Name = "Arial"
.Size = 11
End With
EndLabel:
ActiveDocument.AttachedTemplate.Saved = True
End Sub
a subroutine to ensure that the Normal style has correct font and font size
as per our company standards.
However, this gives rise to the 'Save changes to Document 1?' question on
exit from Word - even when changes are not made. The
"ActiveDocument.AttachedTemplate.Saved = True" code was my attempt to get rid
of the pesky message!
Sub SetNormalStyle()
If (ActiveDocument.Styles(wdStyleNormal).Font.Size = 11 And _
ActiveDocument.Styles(wdStyleNormal).Font.Name = "Arial") Then GoTo
EndLabel
With ActiveDocument.Styles(wdStyleNormal)
.AutomaticallyUpdate = False
.BaseStyle = ""
.NextParagraphStyle = "Normal"
End With
With ActiveDocument.Styles(wdStyleNormal).Font
.Name = "Arial"
.Size = 11
End With
EndLabel:
ActiveDocument.AttachedTemplate.Saved = True
End Sub