Declaring

Tech-Archive recommends: Fix windows errors by optimizing your registry



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
.......




--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.


.