EnforceStyleLock - WordBasic equivalent - cross-posted

Subject: EnforceStyleLock - WordBasic equivalent - cross-posted
From: "Svi Ben-Elya" <svi -at- ieee -dot- org>
To: "TECHWR-L" <techwr-l -at- lists -dot- techwr-l -dot- com>
Date: Sun, 12 Jun 2005 11:13:34 +0300

Does anyone know of a WordBasic equivalent for the EnforceStyleLock VBA

This is for a macro that works in Word 2003, but not in earlier versions.


Basically documents use two levels of restrictions. One is used to activate
form fields in a locked section; the other to force use of styles rather
than local formatting throughout the document.

When both are used, the form field protection adds unwanted limitation to
the rest of the document.

The workaround is to use two macros. The ActivateForms macro locks the
document with both restriction levels. The LimitedRestrictions macro unlocks
the document, then relocks it with only the EnforceStyleLock protection (no
FormsOnly protection).

This works for people working with Word 2003, but doesn't relock for people
working with earlier versions of Word (the EnforceStyleLock property is not

The EnforceStyleLock mechanism appears to work with earlier versions of Word
if the document is locked when they open it. However, it cannot be reapplied
after it gets unlocked.

Please respond (or CC) directly as well as to the list.

- Svi Ben-Elya -
Documentation Manager
svib -at- flashnetworks -dot- com

This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.


New from Quadralay Corporation: WebWorks ePublisher Pro! Easily create
14 online formats, including 6 Help systems, in a project-based
workflow. Live, online demo! http://www.webworks.com/techwr-l

Doc-To-Help 2005 now has RoboHelp Converter and HTML Source: Author
content and configure Help in MS Word or any HTML editor. No
proprietary editor! *August release. http://www.componentone.com/TECHWRL/DocToHelp2005

You are currently subscribed to techwr-l as:
archiver -at- techwr-l -dot- com
To unsubscribe send a blank email to leave-techwr-l-obscured -at- lists -dot- techwr-l -dot- com
Send administrative questions to lisa -at- techwr-l -dot- com -dot- Visit
http://www.techwr-l.com/techwhirl/ for more resources and info.

Previous by Author: Re: How about including your location in your sig?
Next by Author: Re: Frivolous Poll - how do you answer "how are you?"
Previous by Thread: ADMIN Re: Helping a friend
Next by Thread: Acrobt 7 - Pencil Tool

What this post helpful? Share it with friends and colleagues:

Sponsored Ads