Autocorrect in textboxes

R

Randy Dod

I have searched newsgroups, help files, commercial add-in
sites and freeware for the ability in VBA for Word 2000 to
have textboxes on a form do autotext and autocorrect as
Word itself does it. Does anyone know of such a tool? It
would appear that if I were to write my own, I would need
to make an API call to display a tooltip with an
autocorrect entry while typing in a textbox. Or is there
an easier way? I am displaying a dialog box with several
fields. I want the user to be able to use autotext and
autocorrect while typing in the textboxes. Any help is
appreciated.
 
D

Doug Robbins - Word MVP

Hi Randy,

I can't help with the autocorrect, but the following bits of code might help

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

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

' Macro created 15-11-97 by Doug Robbins to add the 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 post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.


Hope this helps
Doug Robbins - Word MVP
 

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