Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Integritybr Integritybr is offline
external usenet poster
 
Posts: 1
Default How do I change underline color.

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.
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Cindy M -WordMVP- Cindy M  -WordMVP- is offline
external usenet poster
 
Posts: 370
Default How do I change underline color.

Hi ?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 :-)

  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default How do I change underline color.

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 FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

Cindy M -WordMVP- wrote:
Hi ?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 :-)



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
shortcut to change text color? egrolman Microsoft Word Help 4 April 11th 23 10:22 AM
How do I change the color by author colors for reviewing? Martin Kemp Microsoft Word Help 9 November 18th 09 10:48 PM
"automatic" font color black, not blue. How do I change this? Brian Microsoft Word Help 2 February 27th 06 03:35 PM
How do I change a Section Title background color? skiman1000 Page Layout 2 May 3rd 05 09:46 PM
I'm trying to change the text shadow color from gray to a darker . Chachilynch Microsoft Word Help 2 December 21st 04 12:54 AM


All times are GMT +1. The time now is 12:54 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"