Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
So I have a very large report with a ton columns that I would to add a border
on the right edge. Do I need to repeat this code for each column (see below), because the columns go way out to DE and that would see quite cumbersome. ------- Range("A9").Select With Selection.Borders(xlEdgeRight) .LineStyle = xlContinuous .Weight = xlThin .ColorIndex = xlAutomatic End With Range("B9").Select With Selection.Borders(xlEdgeRight) .LineStyle = xlContinuous .Weight = xlThin .ColorIndex = xlAutomatic End With ----- Finally I tried this: Range("A9:D9").Borders(xlEdgeRight).Weight = xlThin ....but that only put the border on D9 and that doesn't work. Thanks! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Easy Reading - large number minus small number | New Users to Excel | |||
Insert or add one number at right side to ISBN | Excel Programming | |||
different colour each side of diagonal border | Excel Discussion (Misc queries) | |||
How do I show a surplus number in an entry (on the plus side) | Excel Worksheet Functions | |||
Getting rid of one side a border? | Excel Programming |