PC Review


Reply
 
 
Maximus
Guest
Posts: n/a
 
      9th May 2007
I am trying to create a border around a selection. I am currently
using

Range("C23:G27").Select
Selection.Borders.LineStyle = xlDouble

This results in borders throughtout every cell. How do I get a border
around the perimeter?

Thanks

 
Reply With Quote
 
 
 
 
Otto Moehrbach
Guest
Posts: n/a
 
      9th May 2007
Range("C23 :G27").BorderAround LineStyle:=xlContinuous,
weight:=xlThick
HTH Otto

"Maximus" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I am trying to create a border around a selection. I am currently
> using
>
> Range("C23:G27").Select
> Selection.Borders.LineStyle = xlDouble
>
> This results in borders throughtout every cell. How do I get a border
> around the perimeter?
>
> Thanks
>



 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      9th May 2007
Range("C23:G27").BorderAround LineStyle:=xlDouble

There's more options for .borderaround that you may want to read about in VBA's
help.

Maximus wrote:
>
> I am trying to create a border around a selection. I am currently
> using
>
> Range("C23:G27").Select
> Selection.Borders.LineStyle = xlDouble
>
> This results in borders throughtout every cell. How do I get a border
> around the perimeter?
>
> Thanks


--

Dave Peterson
 
Reply With Quote
 
Maximus
Guest
Posts: n/a
 
      10th May 2007
On May 9, 3:27 pm, "Otto Moehrbach" <ottokm...@comcast.net> wrote:
> Range("C23 :G27").BorderAround LineStyle:=xlContinuous,
> weight:=xlThick
> HTH Otto
>
> "Maximus" <mwago...@caldrywall.com> wrote in message
>
> news:(E-Mail Removed)...
>
>
>
> >I am trying to create a border around a selection. I am currently
> > using

>
> > Range("C23:G27").Select
> > Selection.Borders.LineStyle = xlDouble

>
> > This results in borders throughtout every cell. How do I get a border
> > around the perimeter?

>
> > Thanks- Hide quoted text -

>
> - Show quoted text -


Outstanding 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 0 11th Jun 2006 12:31 AM
Changing the border of one cell s/n change the border of adjacent =?Utf-8?B?Z2phbnNzZW5tbg==?= Microsoft Excel Misc 2 5th Oct 2005 08:35 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
Re: Want black vertical border to show up over gray horizontal border CLR Microsoft Excel Misc 0 15th Jul 2004 07:07 PM


Features
 

Advertising
 

Newsgroups
 


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