Autotext in a protected form

J

Jay Freedman

John said:
I would like to use autotext - or if not, maybe autocorrect - in a
protected form but it appears I cannot.
Is there a work-around for this?
Can you point me in the right direction please.
I've found "spell checking in a protected form" but not autotext.

Hi John,

By design, AutoText is disabled in protected form fields. The only way you
could get that functionality is to build it yourself in macros in the form
template. There is no way to just "turn it on".

AutoCorrect does work in protected form fields, at least in Word 2003. Have
you tried it?
 
D

Doug Robbins

Here are a couple of old things that may help you:

' Macro created 04/29/98 by Doug Robbins to replace a formfield entry with
its autotext equivalent.

On Error GoTo EndSub

userid = ActiveDocument.FormFields("Text1").Result
Address = ActiveDocument.AttachedTemplate.AutoTextEntries(userid).Value
ActiveDocument.FormFields("Text1").Result = Address


EndSub:

Exit Sub

Or, if the autotext entries as items in a dropdown formfield

' Macro created 15-11-97 by Doug Robbins to add the autotext address
corresponding to a drop down name

Set myDrop = ActiveDocument.FormFields("Dropdown1").DropDown
Company = myDrop.ListEntries(myDrop.Value).Name
Address = ActiveDocument.AttachedTemplate.AutoTextEntries(Company).Value
ActiveDocument.FormFields("Text1").Result = Address


--
Please respond to the Newsgroup for the benefit of others who may be
interested. Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP
 
J

John Walker

I would like to use autotext - or if not, maybe autocorrect - in a
protected form but it appears I cannot.
Is there a work-around for this?
Can you point me in the right direction please.
I've found "spell checking in a protected form" but not autotext.

Many thanks
John Walker
 
C

Charles Kenyon

Please note, though, that AutoCorrect is not stored in document templates
(unlike AutoText). There is an article on the MVP FAQ about backing up and
copying AutoCorrect entries if you need it.
 
J

John Walker

Thanks for your reply Jay.

Sorry, I should have posted that I'm using Word 2000.
I'm trying to do a Template for my wife and her colleagues to do their
pupil's reports on at school. They have to write remarks about how
well the pupil is doing and often these remarks are repeated on
variuos reports.

eg. "(Johnnie) has been a pleasure to teach this year".
I'd like to have: "... has been a pleasure to teach this year" as an
AutoText (or maybe AutoCorrect?) to save typing.

I think they're using Word 2003, not sure, but I can check on that.

Does that mean that I can include some AutoTexts in my 2000 and it
will run on their 2003?

Or should I borrow one of their laptops with 2003 on and do the
Template on there?

Or is it reasonably easy to write into VBA which I'm learning and
enjoying basic programming already.

Thank you
John
 
J

John Walker

Sorry Jay.
I don't think it would matter which I used: AutoText or AutoCorrect.
Unless you think only one is applicable

I should have said AutoCorrect instead of AutoText in my question re
programming a Template in Word 2000 to be used on Word 2003.

If AutoCorrect will work then that should be OK.
It would mean typing a couple of unique letters to bring on the
AutoCorrect, eg. aptt = a pleasure to teach. Yes?
That's still quicker than typing everything.

I'm not sure which version of Word they are using - so I'll find out.
I'd still appreciate answers to the previous questions though!

If I can find out how to do some AutoText or AutoCorrect entries via
VBA that would be great.
I don't mind doing a macro as the whole thing is based on VBA with
some text boxes and a lot of drop-downs.

Many thanks
John
 

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