PC Review


Reply
Thread Tools Rate Thread

border non-contiguous rows

 
 
sugargenius
Guest
Posts: n/a
 
      3rd Jan 2007
I'm building a report and certain sub-total rows need top/bottom
border. The actual rows to be "bordered" will vary. I can border the
subtotals as I create them, but i thought it would tidier if I kept
track of the rows to be bordered and did them all at once. Is this
possible:

<pseudocode>
dim rowstoborder as string
rowstoborder = "5"
rowstoborder = rowstoborder & "," & "10"
rowstoborder = rowstoborder & "," & "20"

with rows( rowstoborder )
.Borders.LineStyle = xlNone
.Borders(xlEdgeTop).LineStyle = xlContinuous
.Borders(xlEdgeTop).Weight = xlThick
.Borders(xlEdgeBottom).LineStyle = xlContinuous
.Borders(xlEdgeBottom).Weight = xlThick
end with

</pseudocode>

 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      3rd Jan 2007
Try this idea. Modify to suit

Sub bordernoncontiguous()
Range("a3,a7,a12").Borders.Weight = xlThick
End Sub
--

Don Guillett
SalesAid Software
(E-Mail Removed)
"sugargenius" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I'm building a report and certain sub-total rows need top/bottom
> border. The actual rows to be "bordered" will vary. I can border the
> subtotals as I create them, but i thought it would tidier if I kept
> track of the rows to be bordered and did them all at once. Is this
> possible:
>
> <pseudocode>
> dim rowstoborder as string
> rowstoborder = "5"
> rowstoborder = rowstoborder & "," & "10"
> rowstoborder = rowstoborder & "," & "20"
>
> with rows( rowstoborder )
> .Borders.LineStyle = xlNone
> .Borders(xlEdgeTop).LineStyle = xlContinuous
> .Borders(xlEdgeTop).Weight = xlThick
> .Borders(xlEdgeBottom).LineStyle = xlContinuous
> .Borders(xlEdgeBottom).Weight = xlThick
> end with
>
> </pseudocode>
>



 
Reply With Quote
 
sugargenius
Guest
Posts: n/a
 
      5th Jan 2007

Don Guillett wrote:
> Try this idea. Modify to suit
>
> Sub bordernoncontiguous()
> Range("a3,a7,a12").Borders.Weight = xlThick
> End Sub
> --
>
> Don Guillett
> SalesAid Software
> (E-Mail Removed)


Thanks Don, that worked perfectly

 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      5th Jan 2007
Glad to help.

--
Don Guillett
SalesAid Software
(E-Mail Removed)
"sugargenius" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> Don Guillett wrote:
>> Try this idea. Modify to suit
>>
>> Sub bordernoncontiguous()
>> Range("a3,a7,a12").Borders.Weight = xlThick
>> End Sub
>> --
>>
>> Don Guillett
>> SalesAid Software
>> (E-Mail Removed)

>
> Thanks Don, that worked perfectly
>



 
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
Printing non-contiguous rows at the top Rich Burt Microsoft Excel Worksheet Functions 1 16th Jun 2009 12:42 AM
AVERAGEing non contiguous rows Mike McLellan Microsoft Excel Misc 2 14th Apr 2008 09:21 PM
sum non contiguous rows in 07? =?Utf-8?B?TExveWQ=?= Microsoft Word Document Management 1 9th Apr 2007 10:34 AM
Highlight non- contiguous rows Steve Microsoft Excel Programming 5 23rd Dec 2003 11:10 PM
Re: Highlight non- contiguous rows Bob Phillips Microsoft Excel Programming 0 23rd Dec 2003 10:57 PM


Features
 

Advertising
 

Newsgroups
 


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