How do I change underline color.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am using a form with limeted edit capability. cant use line drawing. But I
need to underline with a different color than the text.
 
Hi =?Utf-8?B?SW50ZWdyaXR5YnI=?=,
I am using a form with limeted edit capability. cant use line drawing. But I
need to underline with a different color than the text.
You cannot use the drawing tools in a protected document. In order to insert a
drawing, the form protection must be deactivated.

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 :-)
 
You still need to unprotect and reprotect the form in order to do this, but
you could put the form field in a table and use a macro like this to change
the color of the cell's bottom border:

Sub ExitTextField()
If Not Selection.Information(wdWithInTable) Then
Exit Sub
End If

ActiveDocument.Unprotect
With Selection.Cells(1)
.Borders(wdBorderBottom).ColorIndex = wdRed ' or other
End With
ActiveDocument.Protect Type:=wdAllowOnlyFormFields, _
NoReset:=True
End Sub

Set this macro as the Exit Macro for each form field that needs a colored
underline.

Of course, this works only if the form field contains only one line of text.
If it word-wraps to another line, it will appear that only the last line is
underlined. Also, the line will be the full width of the table cell, not
just the width of the text.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top