PC Review


Reply
Thread Tools Rate Thread

Applying Bottom and right border

 
 
=?Utf-8?B?R3dlbg==?=
Guest
Posts: n/a
 
      9th Aug 2007
Hi,
Please assist.
How do I put a bottom and right border on each cell in a range?
This is what I have for the bottom border.

Set rng = Range(Cells(Rows.Count, "A").End(xlUp), Range("l7"))

rng.Borders.LineStyle = xlNone
rng.Borders(xlInsideHorizontal).LineStyle = xlContinuous
rng.Borders(xlEdgeBottom).LineStyle = xlContinuous

rng.Borders.LineStyle = xlNone
rng.Borders(xlInsideHorizontal).LineStyle = xlContinuous
rng.Borders(xlEdgeLeft).LineStyle = xlContinuous

rng.Borders.LineStyle = xlNone
rng.Borders(xlInsideHorizontal).LineStyle = xlContinuous
rng.Borders(xlEdgeRight).LineStyle = xlContinuous


Thanks


 
Reply With Quote
 
 
 
 
=?Utf-8?B?SmltIFRob21saW5zb24=?=
Guest
Posts: n/a
 
      9th Aug 2007
Something like this...

Set rng = Range(Cells(Rows.Count, "A").End(xlUp), Range("l7"))

With rng
.Borders.LineStyle = xlNone
.Borders(xlInsideHorizontal).LineStyle = xlContinuous
.Borders(xlEdgeBottom).LineStyle = xlContinuous
.Borders(xlEdgeRight).LineStyle = xlContinuous
End With

--
HTH...

Jim Thomlinson


"Gwen" wrote:

> Hi,
> Please assist.
> How do I put a bottom and right border on each cell in a range?
> This is what I have for the bottom border.
>
> Set rng = Range(Cells(Rows.Count, "A").End(xlUp), Range("l7"))
>
> rng.Borders.LineStyle = xlNone
> rng.Borders(xlInsideHorizontal).LineStyle = xlContinuous
> rng.Borders(xlEdgeBottom).LineStyle = xlContinuous
>
> rng.Borders.LineStyle = xlNone
> rng.Borders(xlInsideHorizontal).LineStyle = xlContinuous
> rng.Borders(xlEdgeLeft).LineStyle = xlContinuous
>
> rng.Borders.LineStyle = xlNone
> rng.Borders(xlInsideHorizontal).LineStyle = xlContinuous
> rng.Borders(xlEdgeRight).LineStyle = xlContinuous
>
>
> Thanks
>
>

 
Reply With Quote
 
=?Utf-8?B?R3dlbg==?=
Guest
Posts: n/a
 
      10th Aug 2007
Thanks
Unfortunately, it only worked for the bottom border.

"Jim Thomlinson" wrote:

> Something like this...
>
> Set rng = Range(Cells(Rows.Count, "A").End(xlUp), Range("l7"))
>
> With rng
> .Borders.LineStyle = xlNone
> .Borders(xlInsideHorizontal).LineStyle = xlContinuous
> .Borders(xlEdgeBottom).LineStyle = xlContinuous
> .Borders(xlEdgeRight).LineStyle = xlContinuous
> End With
>
> --
> HTH...
>
> Jim Thomlinson
>
>
> "Gwen" wrote:
>
> > Hi,
> > Please assist.
> > How do I put a bottom and right border on each cell in a range?
> > This is what I have for the bottom border.
> >
> > Set rng = Range(Cells(Rows.Count, "A").End(xlUp), Range("l7"))
> >
> > rng.Borders.LineStyle = xlNone
> > rng.Borders(xlInsideHorizontal).LineStyle = xlContinuous
> > rng.Borders(xlEdgeBottom).LineStyle = xlContinuous
> >
> > rng.Borders.LineStyle = xlNone
> > rng.Borders(xlInsideHorizontal).LineStyle = xlContinuous
> > rng.Borders(xlEdgeLeft).LineStyle = xlContinuous
> >
> > rng.Borders.LineStyle = xlNone
> > rng.Borders(xlInsideHorizontal).LineStyle = xlContinuous
> > rng.Borders(xlEdgeRight).LineStyle = xlContinuous
> >
> >
> > Thanks
> >
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
page border problems bottom border missing mikeeeee Microsoft Word Document Management 0 12th Oct 2009 09:31 AM
page border - bottom border not printing =?Utf-8?B?UGFt?= Microsoft Word Document Management 2 11th Jun 2006 12:34 AM
page border - bottom border not printing =?Utf-8?B?UGFt?= Microsoft Word Document Management 0 11th Jun 2006 12:31 AM
Body of page appears in Top Border, Left Border and Bottom Border (there is no right border) Michael Edwards Microsoft Frontpage 1 14th Oct 2004 09:46 AM
Force bottom border to bottom? Randall Arnold Microsoft Frontpage 3 14th Jul 2003 05:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:52 PM.