J
jkorchok
I am aware that there are no conditional compilation constants after
VBA6 to distinguish between versions of Word. I have also read items
like the following workarounds:
The problem I'm having is that either this doesn't work or I'm missing
something. I have a module called Word2003 that contains only the
following:
Sub TurnOffReading()
Options.AllowReadingMode = False
End Sub
I call it like this:
If Left(Application.Version, 2) >= "11" And
Left(System.OperatingSystem, 3) = "Win" Then
Word2003.TurnOffReading
End If
I still get the message "Compilation error in hidden module" when
running this in earlier versions of Word.
VBA6 to distinguish between versions of Word. I have also read items
like the following workarounds:
What you can do is place all the office 2007-specific code into separate modules, If no code in that module is ever called when the template is used in Word 2003, then the template will run OK.
The problem I'm having is that either this doesn't work or I'm missing
something. I have a module called Word2003 that contains only the
following:
Sub TurnOffReading()
Options.AllowReadingMode = False
End Sub
I call it like this:
If Left(Application.Version, 2) >= "11" And
Left(System.OperatingSystem, 3) = "Win" Then
Word2003.TurnOffReading
End If
I still get the message "Compilation error in hidden module" when
running this in earlier versions of Word.