• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 891
  • Last Modified:

In Word, force a particular font when a FORM field is filled in by user

I have an existing Word doc. Many users will be filling in various FORMs fields. How do I force a particular font on their entry, without having them choose it? I just need something clear and bold and different than the text used to label the box.

FYI:  The document is actually produced from a PDF. I use PDF Converter Pro v4 and <Save As> a "Word Forms" doc. That all works fine, we can fill in fields, change the font within a field after entering text, and it prints fine. However, Styles is funky - when I try to apply a style to entered text within a forms field, it removes the box and displays the stylized text at the top of the page.

I tried changing the doc's default font, but that changed all the existing text - no good.

I'm in Word 2007, compatibility mode. Other users will use Word 2000 or 2003.


Thanks

LC
0
cgunix
Asked:
cgunix
  • 2
1 Solution
 
cgunixAuthor Commented:
I found a possible answer, or workaround.

If I click in the first form field and drag through the document and release the mouse button over the last field, all form fields are selected, and I can change the font, size, color, etc. Works for me.

(FYI - It only shows selected fields if, while dragging, you hover over another field. If you hover over any other spot in the doc, no selection is shown.)

LC
0
 
wobbledCommented:
You can create a macro and run this to do it automatically.  Just save this macro into an addin and then run it against your form.

Sub ChangeFieldFonts()
   Dim oFld As Field

   With ActiveDocument
      If .ProtectionType <> wdNoProtection Then
         .Unprotect
      End If

      For Each oFld In .Fields
         With oFld
            If .Type = wdFieldFormTextInput Then
               .Result.Font.Name = "Arial"                   'you can change this to whatever you want - same below etc
               .Result.Bold = True
            End If
         End With
      Next oFld

      .Protect Type:=wdAllowOnlyFormFields, NoReset:=True
   End With
End Sub
0
 
cgunixAuthor Commented:
Wobbled:
Thanks for the effort.
However, it doesn't work, as least as I did it - I couldn't figure out how to do an addin, but I put it in a macro and ran tha macro. Then I couldn't move the cursor or type anywhere.

Assuming we can get it to work, how would I add font size and color (red)?
Thanks

LC
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

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