Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.tables
jlarge jlarge is offline
external usenet poster
 
Posts: 2
Default Macro to add horizontal double-border to single cell

Hi all,

I am trying to modify a macro that I found online to apply a horizontal
double-border to a single cell but I am not getting anywhere. Can someone
please help?

Starting point - http://support.microsoft.com/default.aspx/kb/209216

Thanks!!!
  #2   Report Post  
Posted to microsoft.public.word.tables
jlarge jlarge is offline
external usenet poster
 
Posts: 2
Default Macro to add horizontal double-border to single cell

I just re-read my post and perhaps I wasn't too clear. The macro I found
applies a double-line border all around the cell. I want the border applied
horizontally on the bottom only. Thanks
  #3   Report Post  
Posted to microsoft.public.word.tables
Lene Fredborg Lene Fredborg is offline
external usenet poster
 
Posts: 1,291
Default Macro to add horizontal double-border to single cell

The following macro applies a double underline to the bottom of the selected
cell (if more cells are selected, the border is only applied to the first
cell):

Sub BorderCell()

If Selection.Information(wdWithInTable) Then

'Apply double bottom border to table cell
With Selection.Cells(1).Borders(wdBorderBottom)
.LineWidth = wdLineWidth050pt
.LineStyle = wdLineStyleDouble
End With

Else

MsgBox "Insertion point is not in a Word table"

End If

End Sub

--
Regards
Lene Fredborg
DocTools - Denmark
www.thedoctools.com
Document automation - add-ins, macros and templates for Microsoft Word


"jlarge" wrote:

Hi all,

I am trying to modify a macro that I found online to apply a horizontal
double-border to a single cell but I am not getting anywhere. Can someone
please help?

Starting point - http://support.microsoft.com/default.aspx/kb/209216

Thanks!!!

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
Cell Bottom-Border becomes Upper-Border on Next Page zSplash Tables 4 October 6th 06 11:46 PM
Double border lines in table when single selected DonD Microsoft Word Help 1 July 26th 06 04:28 PM
how do i make a horizontal line for a double entry paper? bhugalu Microsoft Word Help 1 October 16th 05 12:35 AM
Paragraph styles lose horizontal border separation Robert Werner Microsoft Word Help 6 July 21st 05 10:36 AM
How do I get a bottom (horizontal) border for my footnote ktharris Page Layout 2 June 21st 05 05:55 PM


All times are GMT +1. The time now is 12:35 PM.

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"