Need help to apply top border in table with any text show in column A

lbillie

New Member
Joined
Jun 21, 2013
Messages
28
[TABLE="width: 400"]
<tbody>[TR]
[TD]PT#
[/TD]
[TD]INI.
[/TD]
[TD]EAU FY1
[/TD]
[TD]VENDOR
[/TD]
[TD]TOOLING COST
[/TD]
[TD]TOOL LEAD TIME(Wks)
[/TD]
[TD]PEACE PRICE
[/TD]
[TD]MIN. ORDER QTY.
[/TD]
[/TR]
[TR]
[TD]PT18104
[/TD]
[TD]JB
[/TD]
[TD]1,000
[/TD]
[TD]Cardinal Alum. CO.
[/TD]
[TD]$4,200.00
[/TD]
[TD]5
[/TD]
[TD]$4.66
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Dan's Alum. Die
[/TD]
[TD]$4,800.00
[/TD]
[TD]4
[/TD]
[TD]$4.75
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]RW14554
[/TD]
[TD]JBP
[/TD]
[TD]1,000
[/TD]
[TD]Cardinal Alum. CO.
[/TD]
[TD]$3,400.00
[/TD]
[TD]4
[/TD]
[TD]$2.50
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Jacob's Alum.
[/TD]
[TD]$3,500.00
[/TD]
[TD]4
[/TD]
[TD]$2.75
[/TD]
[TD]1
[/TD]
[/TR]
</tbody>[/TABLE]

Hello everyone, any assistance is greatly appreciated. I need help applying a top border above the cell in the 1st column. This format comes from a pivot table. I tried applying it using a conditional format, but it didnt' work. I applied the formula under Use a formula to determine which cells to format. (=$A1="**")
Would anyone happen to have a VBA to apply this method?
The line should apply at top border across the table with any text applied in Column A.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
For example: A top border in row 1 above PT# thru Min. across table above Order Qty.
A top border in row 2 above PT18104 across table above 1
A top border in row 5 above RW14554 across table above 1
I hope this made sense to you.
 
Upvote 0
Any cell that is not blank in column A. Last reply was suppose to say row 4, not row 5. Sorry about the confusion.
 
Upvote 0
You had the right idea with the conditional formatting. The equation should be:

Code:
=A1<>""

Then copy that cell, highlight all the other ones and right click>paste special>formats. it will adjust the formula on down.
 
Upvote 0

Forum statistics

Threads
1,223,713
Messages
6,174,043
Members
452,542
Latest member
Bricklin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top