G
Greg Maxey
I am trying to discipline myself to properly declare variable. In the
example below it took me 15 minutes to stumble on Oject to work with
oSpError. Is Object the right choice in this case?
Sub printSpellingErrors()
Dim oSpErrors As ProofreadingErrors
Dim oSpError As Object
Set oSpErrors = ActiveDocument.Range.SpellingErrors
For Each oSpError In oSpErrors
.......
example below it took me 15 minutes to stumble on Oject to work with
oSpError. Is Object the right choice in this case?
Sub printSpellingErrors()
Dim oSpErrors As ProofreadingErrors
Dim oSpError As Object
Set oSpErrors = ActiveDocument.Range.SpellingErrors
For Each oSpError In oSpErrors
.......