.Protect funktion from Word 2002/2003 Hilfe

A

acherony

Hi,

i made templates that use Formating Protection

Word 2003:
ActiveDocument.Protect PASSWORD:="1234", NoReset:=False, Type:= _
wdNoProtection, EnforceStyleLock:=True

and if I start this Templates under Word 2002 I received compiler error, while

ActiveDocument.Protect PASSWORD:="1234", NoReset:=False, Type:= _
wdNoProtection, EnforceStyleLock:=True

don´t support EnforceStyleLock:=True and I need this option to protect
styles formatting.

MY Question:

This Templates is for company where Word 2002/2003 will be used.
Can I use or set code that will use Funtion from Word 2003 while user is
running
Word 2002.

Or

How can I resolve this problem diferent way(Please, consider that I have to
use Format style Protection)

Thanks
 
J

Jonathan West

acherony said:
Hi,

i made templates that use Formating Protection

Word 2003:
ActiveDocument.Protect PASSWORD:="1234", NoReset:=False, Type:= _
wdNoProtection, EnforceStyleLock:=True

and if I start this Templates under Word 2002 I received compiler error,
while

ActiveDocument.Protect PASSWORD:="1234", NoReset:=False, Type:= _
wdNoProtection, EnforceStyleLock:=True

don´t support EnforceStyleLock:=True and I need this option to protect
styles formatting.

MY Question:

This Templates is for company where Word 2002/2003 will be used.
Can I use or set code that will use Funtion from Word 2003 while user is
running
Word 2002.

No, you cannot.
Or

How can I resolve this problem diferent way(Please, consider that I have
to
use Format style Protection)

Update all your Word 2002 users to Word 2003. You cannot make use of a
feature that is not present in the version of Word they are using.

I realise this is probably not the answer you want to hear, but it is the
only available answer in the circumstances


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 

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