Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Allow Form Users to Format Text
I created a form in Word. Is there a way to allow the user (the person who is
filling in the form with information) to format the text that they input into the fields; e.g., if they want to make a word bold or italic, can they do so? |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Allow Form Users to Format Text
Hi ?B?Q0pNIFR5cGU=?=,
I created a form in Word. Is there a way to allow the user (the person who is filling in the form with information) to format the text that they input into the fields; e.g., if they want to make a word bold or italic, can they do so? If you're using form fields and forms protection, then this is only possible using a macro. And if the form fields are within a table, then the macro would be non-trivial (because the user can't select characters within a form field embedded in a table cell). The macro, outside a table, is fairly trivial: Sub FormBold() Dim doc as Word.Document Set doc = ActiveDocument if doc.ProtectionType wdNoProtection Then doc.Unprotect End If Selection.font.Bold = true doc.Protect Type:=wdAllowOnlyFormFields, NoReset:=True End Sub 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 :-) |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Allow Form Users to Format Text
Hello Cindy,
I'm just wondering when do you invoke the macro? When your cursor is within the form field? "Cindy M." wrote: Hi ?B?Q0pNIFR5cGU=?=, I created a form in Word. Is there a way to allow the user (the person who is filling in the form with information) to format the text that they input into the fields; e.g., if they want to make a word bold or italic, can they do so? If you're using form fields and forms protection, then this is only possible using a macro. And if the form fields are within a table, then the macro would be non-trivial (because the user can't select characters within a form field embedded in a table cell). The macro, outside a table, is fairly trivial: Sub FormBold() Dim doc as Word.Document Set doc = ActiveDocument if doc.ProtectionType wdNoProtection Then doc.Unprotect End If Selection.font.Bold = true doc.Protect Type:=wdAllowOnlyFormFields, NoReset:=True End Sub 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 :-) |
#4
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Allow Form Users to Format Text
Thank you for the input and instruction. You answered my question.
"CJM Type" wrote: I created a form in Word. Is there a way to allow the user (the person who is filling in the form with information) to format the text that they input into the fields; e.g., if they want to make a word bold or italic, can they do so? |
#5
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Allow Form Users to Format Text
Hi Nina,
I'm just wondering when do you invoke the macro? When your cursor is within the form field? In the context of the original question, the user makes a selection then clicks a button (or presses a keyboard shortcut). So, yes, the selection is in the form field. 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 :-) |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Different format on different users machine | Microsoft Word Help | |||
How do I format a word doc for both PC and mac users? | Microsoft Word Help | |||
how do I format text in a protected form field? | Microsoft Word Help | |||
Protected Form - allow users to access hyperlink in the form | Microsoft Word Help | |||
How do I format text I have already typed in a form field? | Microsoft Word Help |