View Single Post
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Cindy M. Cindy M. is offline
external usenet poster
 
Posts: 2,416
Default Select only one word in text form field

Hi ?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 :-)