Select only one word in text form field

G

Guest

I have a form with many form fields for users to input text. I want the
users to be able to select only the word(s) they want within the fields to be
able to apply different text formatting to them if they choose. I have set
up macros to allow them to apply bold, italic, change font size, etc. but I
can't figure out how to be able to apply this formatting to only the text I
want vs. the entire text field. I appreciate any help you can give.
 
C

Cindy M.

Hi =?Utf-8?B?cGJyZW5ueQ==?=,
I have a form with many form fields for users to input text. I want the
users to be able to select only the word(s) they want within the fields to be
able to apply different text formatting to them if they choose. I have set
up macros to allow them to apply bold, italic, change font size, etc. but I
can't figure out how to be able to apply this formatting to only the text I
want vs. the entire text field. I appreciate any help you can give.
If these form fields are in a table, I'm afraid you're running into a very old
bug. As long as forms protection is activated, it's not possible to select just
parts of a form field located in a table cell. You have to get very creative.
One possible approach would be to pull the text into a UserForm; the user
selects and specifies font formatting (which he won't see). You note the
character locations of each selection, along with the formatting. Unprotect the
document and apply the formatting to the ranges the user specified.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 
G

Guest

Thanks so much for your help with this. The form fields were in a table so
now I know what the cause is.
 

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