I'm writing a macro in Word that needs to be able to run in Word 97 and Word 2000. However, when it's run in 2000, I need to add a statement that 97 doesn't require. The problem is that the method I need in 2000 doesn't exist in 97 so when I run it in 97 it gives me a compile error "Method or data member not found". My statement looks like this:
The Selection.NoProofing is not available in 97. I've tried On Error Resume Next and On Error GoTo 0 but neither work.
Code:
If Application.Version = "9.0" Then Selection.NoProofing = False
The Selection.NoProofing is not available in 97. I've tried On Error Resume Next and On Error GoTo 0 but neither work.