#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default Border Problem

Thanks Jim

"Jim Cone" wrote:


Sheets("Debrief Report").Activate
LwriteRow = Cells(Rows.Count, 2).End(xlUp).Row
LborderRow = LwriteRow + 2

With Range("A1", "F" & LborderRow)
.Borders(xlDiagonalDown).LineStyle = xlNone
.Borders(xlDiagonalUp).LineStyle = xlNone
.Borders(xlEdgeLeft).LineStyle = xlNone
.Borders(xlEdgeTop).LineStyle = xlNone
With .Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.Weight = xlMedium
.ColorIndex = xlAutomatic
End With
.Borders(xlEdgeRight).LineStyle = xlNone
.Borders(xlInsideVertical).LineStyle = xlNone
End With
--
Jim Cone
Portland, Oregon USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)




"Gizmo"
wrote in message
Excel2003
How can I find the last used row, then select cells "A:F" & Lastrow +2 and
apply bottom border.
I tried this code but no go.

Sheets("Debrief Report").Activate
LWriteRow = Cells(65536, 2).End(xlUp).Row
LBorderRow = LWriteRow + 2

Range("A:F" & LBorderRow).Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
Selection.Borders(xlEdgeLeft).LineStyle = xlNone
Selection.Borders(xlEdgeTop).LineStyle = xlNone
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.Weight = xlMedium
.ColorIndex = xlAutomatic
End With
Selection.Borders(xlEdgeRight).LineStyle = xlNone
Selection.Borders(xlInsideVertical).LineStyle = xlNone

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cell border problem Brian Excel Discussion (Misc queries) 2 July 31st 07 07:44 PM
Saving an file with charts as a webpage - border problem Sarah Excel Discussion (Misc queries) 0 June 28th 06 01:27 PM
bottom double border shorcut key problem Ray Excel Discussion (Misc queries) 1 February 4th 06 05:40 PM
Changing the border of one cell s/n change the border of adjacent gjanssenmn Excel Discussion (Misc queries) 2 October 5th 05 08:35 PM
Default Border Color Problem Bobbie Excel Discussion (Misc queries) 1 May 25th 05 06:33 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"