Word 2003 vs XP read only option

S

Starbird

I have the following code that works fine in Word 2003 but gives an error if
a user in using Office XP. How can I make it protect for read only in XP as
well?

ActiveDocument.Protect Password:="test", noreset:=True,
Type:=wdAllowOnlyReading

Thanks in advance for any help!

SRD
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?U3RhcmJpcmQ=?=,
I have the following code that works fine in Word 2003 but gives an error if
a user in using Office XP. How can I make it protect for read only in XP as
well?

ActiveDocument.Protect Password:="test", noreset:=True,
Type:=wdAllowOnlyReading
Without knowing what error message (exactly!) is occurring, it's impossible to
even begin guessing...

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 
S

Starbird

XP doesn't protect for 'OnlyReading', I had to use a protection that was
available in both versions such as 'OnlyComments' or have it check for the
version before running the protection code. Took awhile for me to figure
out, but I found the solution already.
Thanks anyway.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top