?
Solved

Rich Text Formatting in Word 2007 Form Field

Posted on 2010-01-12
13
Medium Priority
?
1,023 Views
Last Modified: 2012-05-08
Hi, I am looking for some help on an issue.  I have a form I am developing in word.  I have a text box/form field that I am allowing my users to freely type in.  However, in that form field I need to allow them some rich text format capability.  Bold, underline, italics.  Thats it.  Nothing else.  Is this possible to do?  
0
Comment
Question by:kevingibbs1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 6
13 Comments
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 26298008
Not using a Form field. In 2007, you could use a rich text content control. Content controls can be filled in on a forms-protected document, so they are compatible.
0
 

Author Comment

by:kevingibbs1
ID: 26298029
Thanks Graham.  So, let me be clear.  If I use a Rich Text control.  I can set the field's properties to say, Arial 12.  Does that give the user the ability to bold, underline, italics words directly within the textbox when they want?
0
 

Author Comment

by:kevingibbs1
ID: 26298077
Graham, I'm sorry.  I left out a rather important detail.  This is also a protected form.  When I set protection to on.  ALL of my rich text controls go away.  When I am in the control, I can't seem to use any of the RTF controls.  They are all gray.
0
On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

 
LVL 76

Expert Comment

by:GrahamSkan
ID: 26298189
Sorry. You are right. I haven't tried that before.

It is strange, because formatted text can be copied into the control when the document is protected.

Would an unprotected Section be suitable? That can still be formatted with the ribbon controls or the context menu.
0
 

Author Comment

by:kevingibbs1
ID: 26298226
Unfortuantely no.  Our forms here are required to be in Arial 12 and cannot be in any other format.  If we opened up the section to the users, they would wind up changing the font and making a mess of things.  Man, this is frustrating.  Seems like such a simple need!  Thanks Graham.  If you can think of any other way to accomplish this, I'm all ears!!
0
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 500 total points
ID: 26298821
If you want to ensure that the font name and size are fixed, but font attributes are changeable, I can only think of a series of macros that go something like this

    ActiveDocument.Unprotect 'password
    Selection.Font.Bold = True
    ActiveDocument.Protect wdAllowOnlyFormFields, True 'Passowrd
0
 

Author Comment

by:kevingibbs1
ID: 26303481
Graham, I love that suggestion.  I've been playing with it a little and I really like its chances of being my solution.  Only problem I am having is that when I select the text I want to bold, and then I go to click the command button with the code to bold, my selection gets lost with the click on the command button.  Make sense?  So nothing gets bolded.  Graham, this definitely seems like an awesome solution.  Can you give me any advice on how to make my text selection stick even after I click the command button?
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 26303602
It depends where the button is. If it's on a toolbar, then that shouldn't happen. If it's an ActiveX button on the document,then that would entail a change of selction in the act of clicking.
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 26303626
Oops. You are using 2007 which doesn't have toolbars. I'll need to research the toolbar equivalent for 2007.
0
 

Author Comment

by:kevingibbs1
ID: 26303665
The button is on the form itself.  Right above the form field.  So, does that mean using a command button on the form itself is not doable?  Do I have to add buttons to the toolbar/ribbon?  Just to muddy the waters a little bit more.  I will have some users who are using Word 2000 and 2003.  If that changes anything at all, not sure.  Thanks for all your help in researching this for me Graham!

0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 26304077
Unfortunately it does a bit.

It seems that the procedure for assigning macros to command bar buttons has been replaced by the simpler, but less flexible assignation to to the Quick Access Toolbar.

The Quick Access Toolbar is at the top left of all Office application windows. There is a tiny down arrow to the right of it. Click on that and choose 'More Commands...' This will open the 'Word Options' 'Customize' window. In the left-hand dropdown, choose Macros. Find your macro in the list below and click on the 'Add>>' button.

Note that you can change the Icon and the display name with the Modify... button, now or later.
0
 

Author Comment

by:kevingibbs1
ID: 26304128
OK, so this sounds like a solution that might work well for 2007, but will not work for previous versions.  Thanks Graham!  I really appreciate your help.  I'll give you the points now on the solution you listed above!  Thanks again.  If you come up with anything else, I'd love to hear it.  Thanks!
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 26304517
Thanks. The procedure for 2003 is similar. You start with Tools/Customize. You have to look for Macros in the commands list. When you see your macro in the left hand box, you have to drag it to a visible toolbar.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I would like to show you some basics you can do with Mailings in MS Word. It´s quite handy feature you can use for creating envelopes, labels, personalized letters etc. First question could be what is this feature good for? Mailing can really he…
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
Suggested Courses

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question