I have a VB 6 app where I would like to loop through all the Options of a Word 2000 object so I can view the values and change where needed. These are Options such as:
AutoFormatAsYouTypeReplaceHyperlinks
AutoFormatReplaceHyperlinks
I'd also like to eventually loop through all the AutoCorrect values but first I want to do the Options.
When it gets to the "For Each" line the error "Object doesn't support this property or method." is shown. Can someone please tell me how to to do this?
AutoFormatAsYouTypeReplaceHyperlinks
AutoFormatReplaceHyperlinks
I'd also like to eventually loop through all the AutoCorrect values but first I want to do the Options.
Code:
Dim AppWd As Word.Application
Dim objOption As Word.Options
For Each objOption In AppWd.Options
Debug.Print [COLOR=red] Value of the Option will be displayed here. [/color]
Next
When it gets to the "For Each" line the error "Object doesn't support this property or method." is shown. Can someone please tell me how to to do this?