PC Review


Reply
Thread Tools Rate Thread

Automatically change the line thickness of a row

 
 
HeathBarker
Guest
Posts: n/a
 
      17th Jun 2008
I am hoping to increase the line thickness of certain rows of a report
(sheet2) that I automatically create from a table of data (sheet1). The
condition for the row thickness is the presence of data in Collumn A (between
rows 13 and 500). Only the top edge of these row cells (between columns A and
G) need to have a medium thickness while the rest are to be thin thickness
except:

To add a little more complexity, there is to be no vertical line between
columns A and B and on the far left and far right of the report (left of
column A and right of column G).

Any assistance would be greatly appreciated.

Heath
 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      17th Jun 2008
try this

Sub setunderline()
With Range("b16:d21")
.Borders.LineStyle = xlNone
.Borders(xlInsideHorizontal).Weight = xlThick
End With
End Sub
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"HeathBarker" <(E-Mail Removed)> wrote in message
news:191B66C9-65AE-4667-879D-(E-Mail Removed)...
>I am hoping to increase the line thickness of certain rows of a report
> (sheet2) that I automatically create from a table of data (sheet1). The
> condition for the row thickness is the presence of data in Collumn A
> (between
> rows 13 and 500). Only the top edge of these row cells (between columns A
> and
> G) need to have a medium thickness while the rest are to be thin thickness
> except:
>
> To add a little more complexity, there is to be no vertical line between
> columns A and B and on the far left and far right of the report (left of
> column A and right of column G).
>
> Any assistance would be greatly appreciated.
>
> Heath


 
Reply With Quote
 
Joel
Guest
Posts: n/a
 
      17th Jun 2008

Range("A13:G500").Borders(xlEdgeTop).Weight = xlMedium

"HeathBarker" wrote:

> I am hoping to increase the line thickness of certain rows of a report
> (sheet2) that I automatically create from a table of data (sheet1). The
> condition for the row thickness is the presence of data in Collumn A (between
> rows 13 and 500). Only the top edge of these row cells (between columns A and
> G) need to have a medium thickness while the rest are to be thin thickness
> except:
>
> To add a little more complexity, there is to be no vertical line between
> columns A and B and on the far left and far right of the report (left of
> column A and right of column G).
>
> Any assistance would be greatly appreciated.
>
> Heath

 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      17th Jun 2008
corrected for your criteria
Sub setunderline()
With Range("a13:g501")
.Borders.LineStyle = xlNone
.Borders(xlInsideHorizontal).Weight = xlmedium ' thick thin
End With
End Sub


--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Don Guillett" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> try this
>
> Sub setunderline()
> With Range("b16:d21")
> .Borders.LineStyle = xlNone
> .Borders(xlInsideHorizontal).Weight = xlThick
> End With
> End Sub
> --
> Don Guillett
> Microsoft MVP Excel
> SalesAid Software
> (E-Mail Removed)
> "HeathBarker" <(E-Mail Removed)> wrote in message
> news:191B66C9-65AE-4667-879D-(E-Mail Removed)...
>>I am hoping to increase the line thickness of certain rows of a report
>> (sheet2) that I automatically create from a table of data (sheet1). The
>> condition for the row thickness is the presence of data in Collumn A
>> (between
>> rows 13 and 500). Only the top edge of these row cells (between columns A
>> and
>> G) need to have a medium thickness while the rest are to be thin
>> thickness
>> except:
>>
>> To add a little more complexity, there is to be no vertical line between
>> columns A and B and on the far left and far right of the report (left of
>> column A and right of column G).
>>
>> Any assistance would be greatly appreciated.
>>
>> Heath

>


 
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
line thickness DZ Microsoft Access Forms 0 4th Aug 2008 05:51 PM
Line thickness bug? Traxx314 Microsoft Powerpoint 0 14th Apr 2008 03:36 PM
Re: Line Thickness Pat Garard Microsoft Word Document Management 1 12th Feb 2005 11:55 PM
how to set up a thickness of a line in visual basic code for one selected line in chart in MS Access `97 Kamyk Microsoft Access Form Coding 0 2nd Jul 2004 04:59 PM
change chart line thickness Linda George Microsoft Powerpoint 2 7th Apr 2004 08:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:04 AM.