Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2004

Tip: Looking for answers? Try searching our database.

Autotext in a protected form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John Walker - 02 Nov 2004 00:48 GMT
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
Jay Freedman - 01 Nov 2004 17:19 GMT
> 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?

Signature

Regards,
Jay Freedman
Microsoft Word MVP          FAQ: http://word.mvps.org

John Walker - 02 Nov 2004 18:14 GMT
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

>> I would like to use autotext - or if not, maybe autocorrect - in a
>> protected form but it appears I cannot.
[quoted text clipped - 10 lines]
>AutoCorrect does work in protected form fields, at least in Word 2003. Have
>you tried it?
John Walker - 02 Nov 2004 18:32 GMT
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

>> I would like to use autotext - or if not, maybe autocorrect - in a
>> protected form but it appears I cannot.
[quoted text clipped - 10 lines]
>AutoCorrect does work in protected form fields, at least in Word 2003. Have
>you tried it?
Doug Robbins - 02 Nov 2004 00:43 GMT
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

Signature

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

> Sorry Jay.
> I don't think it would matter which I used: AutoText or AutoCorrect.
[quoted text clipped - 34 lines]
>>Have
>>you tried it?
Charles Kenyon - 02 Nov 2004 15:24 GMT
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.
Signature


Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

> Sorry Jay.
> I don't think it would matter which I used: AutoText or AutoCorrect.
[quoted text clipped - 33 lines]
> >AutoCorrect does work in protected form fields, at least in Word 2003. Have
> >you tried it?
John Walker - 03 Nov 2004 21:02 GMT
Thank you for your replies Doug and Charles.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.