View Single Post
  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default AutoText in protected forms

Autotext still exists in Word 2007 (Insert Document Parts) but macros that
call autotext entries may require some modification in order to continue to
work eg

Dim sType as String
If Application.version = 12 Then
'Word 2007 - Use the Building Blocks Organizer
Dialogs(GetDialog).Show
sType = "Building Blocks"
Else
'Not Word 2007 - Use the Autotext dialog.
Dialogs(wdDialogEditAutoText).Show
sType = "Autotext"
End If

will pop up the appropriate dialog
or

If Application.version = 12 Then
'Word 2007 - Use Building Blocks
ActiveDocument.AttachedTemplate.BuildingBlockEntri es("Date").Insert _
Whe=Selection.Range
Else
'Not Word 2007 - Use Autotext
ActiveDocument.AttachedTemplate.AutoTextEntries("D ate").Insert _
Whe=Selection.Range
End If

will insert an entry from the attached template called 'Date'

Note that there is no autocomplete with autotext in Word 2007, but you can
type the first few unique characters and press F3 to insert.


--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Chris wrote:
I finally found a tread with my same problem. We use autotext
extensively. In 2003 we built autotext and stored them in our
.normal. Then from Tools, Macros, Organizer there was an "Autoext"
tab that allowed us to move the named autotext into for a specific
file, which could be protected. Macros within the protected file ran
the autotext. That "Autotext" tab no longer exists in 2007. We're in
a real bind, all our contracts are protected. HELP!!!!!

I have a 1 page letter that I need to have drop down menus and text
field for the body, but the capabilty of having autotext fill other
areas. I have entered a continuous section break just before and
right after the area I need protected. I have highlighted the
section I need protected. When I use the "tools" protection rather
than the form lock protection icon, the only options I have to
choose from are formatting restrictions and editing restrictions. I
have tried using the formatting restrictions alone, I have tried
using the editing restriction of "filling in forms" alone and both
of these option in conjunction with each other. After I type in the
password and "enforce" the protection. I still can only use
autotext or I can fill in the forms. It will not allow me to do
both in the same document. What am I doing wrong? "Beth Melton"
wrote:

Note you need to use Tools/Protect Document or the Protect document
task pane in order to see the option for deselecting various
sections rather than the Protect Document command on the Forms
toolbar.

--
Please post all follow-up questions to the newsgroup. Requests for
assistance by email can not be acknowledged.

~~~~~~~~~~~~~~~
Beth Melton
Microsoft Office MVP

Word FAQ: http://mvps.org/word
TechTrax eZine: http://mousetrax.com/techtrax/
MVP FAQ site: http://mvps.org/


"Suzanne S. Barnhill" wrote in message
...
Yes. Insert a section break between the part you want to protect
and
the
part you don't. Then you will have the option of protecting only
specific sections.