D
david_alex_smith
Hello,
I require a macro to set all of the styles in a document to UK English for
spell-checking etc.
I've written the following VB:
Sub UKStyle()
For Each Sty In ActiveDocument.Styles
Sty.LanguageID = wdEnglishUK
Next
End Sub
This produces the following error when executed:
"That property is not available on that object."
This is puzzling me as it appears that the object is available in the API
docs. I can also change a single style with the following code:
ActiveDocument.Styles(1).LanguageID = wdEnglishUK
Any ideas why my code doesn't work?
Thanks.
Dave.
I require a macro to set all of the styles in a document to UK English for
spell-checking etc.
I've written the following VB:
Sub UKStyle()
For Each Sty In ActiveDocument.Styles
Sty.LanguageID = wdEnglishUK
Next
End Sub
This produces the following error when executed:
"That property is not available on that object."
This is puzzling me as it appears that the object is available in the API
docs. I can also change a single style with the following code:
ActiveDocument.Styles(1).LanguageID = wdEnglishUK
Any ideas why my code doesn't work?
Thanks.
Dave.