Sub
AutoOpen()
Dim
ignoreErrors
As
Boolean
ignoreErrors =
True
Call
AddKeyTo_ChangeErrorIgnoring
Application.DisplayAlerts =
False
End
Sub
Sub
ChangeErrorIgnoringOld()
If
ThisDocument.ShowGrammaticalErrors =
False
And
ThisDocument.ShowSpellingErrors =
False
Then
ThisDocument.ShowGrammaticalErrors =
True
ThisDocument.ShowSpellingErrors =
True
Else
ThisDocument.ShowGrammaticalErrors =
False
ThisDocument.ShowSpellingErrors =
False
End
If
End
Sub
Sub
AddKeyTo_ChangeErrorIgnoring()
Dim
kb
As
KeyBinding
With
Application
.CustomizationContext = ActiveDocument
Set
kb = .FindKey(BuildKeyCode(wdKeyControl, wdKeyAlt, wdKeyShift, wdKeyF))
.KeyBindings.Add _
KeyCode:=BuildKeyCode(wdKeyControl, wdKeyAlt, wdKeyShift, wdKeyF), _
KeyCategory:=wdKeyCategoryMacro, _
Command:=
"ChangeErrorIgnoring"
End
With
End
Sub
Sub
ChangeErrorIgnoringOld2()
If
ignoreErrors =
True
Then
ignoreErrors =
False
On
Error
GoTo
0
Else
ignoreErrors =
True
On
Error
Resume
Next
End
If
End
Sub
Sub
ChangeErrorIgnoring()
If
Application.DisplayAlerts =
True
Then
Application.DisplayAlerts =
False
Else
Application.DisplayAlerts =
True
End
If
End
Sub