Link to home
Start Free TrialLog in
Avatar of surfNsam
surfNsam

asked on

5485 error on SpellCheck Word2010 macro

The SpellCheck routine which is embedded in a Word2010 form gives a '5485',  'The password is incorrect' notice when you try to run it. This worked on our XP computers. I've tried to research it on the web but haven't found anything that worked. Would appreciate some guidance on this. See below:

Sub SCForm
'
' SCForm Macro
'
'
ActiveDocument.Unprotect
Selection.WholeStory
Selection.LanguageID = wdEnglishUS
ActiveDocument.CheckSpelling
ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True

End Sub
Avatar of GrahamSkan
GrahamSkan
Flag of United Kingdom of Great Britain and Northern Ireland image

Are you sure that the error isn't happening on the ActiveDocument.Unprotect line?
Avatar of surfNsam
surfNsam

ASKER

It may very well be. That line was highlighted when I took a look at it. Why did you key in on this?
ASKER CERTIFIED SOLUTION
Avatar of GrahamSkan
GrahamSkan
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
GrahamSkan - you the man!! Works like a charm!