PC Review


Reply
Thread Tools Rate Thread

Border for range

 
 
=?Utf-8?B?Ym9iZW5zXzgz?=
Guest
Posts: n/a
 
      20th Sep 2007
Hi. How to set a solid border for range, not for each cell. For example

Range("A1:A3")

Greetings and thanks for help
 
Reply With Quote
 
 
 
 
Bernie Deitrick
Guest
Posts: n/a
 
      20th Sep 2007
Dim myR As Range

Set myR = Range("A1:A3")

myR.Borders(xlEdgeLeft).LineStyle = xlContinuous
myR.Borders(xlEdgeTop).LineStyle = xlContinuous
myR.Borders(xlEdgeBottom).LineStyle = xlContinuous
myR.Borders(xlEdgeRight).LineStyle = xlContinuous
myR.Borders(xlInsideHorizontal).LineStyle = xlNone


You can also set the line weight and color:
myR.Borders(xlEdgeLeft).Weight = xlThin
myR.Borders(xlEdgeLeft)..ColorIndex = xlAutomatic

etc.

HTH,
Bernie
MS Excel MVP


"bobens_83" <(E-Mail Removed)> wrote in message
news:033D4D21-355C-4A5D-9E1F-(E-Mail Removed)...
> Hi. How to set a solid border for range, not for each cell. For example
>
> Range("A1:A3")
>
> Greetings and thanks for help



 
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
Conditional add border in a range Hank Microsoft Excel Misc 3 5th Sep 2009 12:24 AM
Border around range working -Border for cells within range not wor =?Utf-8?B?R3dlbg==?= Microsoft Excel Programming 3 23rd Oct 2007 08:45 PM
border every other cell in range cass calculator Microsoft Excel Programming 1 17th Aug 2006 05:16 PM
border every other cell in range cass calculator Microsoft Excel Programming 0 17th Aug 2006 04:53 PM
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


Features
 

Advertising
 

Newsgroups
 


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