Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1027
  • Last Modified:

Rich Text Formatting in Word 2007 Form Field

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
kevingibbs1
Asked:
kevingibbs1
  • 7
  • 6
1 Solution
 
GrahamSkanRetiredCommented:
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
 
kevingibbs1Author Commented:
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
 
kevingibbs1Author Commented:
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
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

 
GrahamSkanRetiredCommented:
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
 
kevingibbs1Author Commented:
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
 
GrahamSkanRetiredCommented:
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
 
kevingibbs1Author Commented:
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
 
GrahamSkanRetiredCommented:
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
 
GrahamSkanRetiredCommented:
Oops. You are using 2007 which doesn't have toolbars. I'll need to research the toolbar equivalent for 2007.
0
 
kevingibbs1Author Commented:
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
 
GrahamSkanRetiredCommented:
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
 
kevingibbs1Author Commented:
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
 
GrahamSkanRetiredCommented:
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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 7
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now