Declaring
- From: "Greg Maxey" <gmaxey@xxxxxxxxxxxxxxxxxxx>
- Date: Fri, 1 Apr 2005 20:25:54 -0500
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.
.
- Follow-Ups:
- Re: Declaring
- From: Jezebel
- Re: Declaring
- Prev by Date: Combo Box with Available Printers
- Next by Date: Re: Word Index
- Previous by thread: Tabbing out of Blank Cell
- Next by thread: Re: Declaring
- Index(es):