Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I need to apply a Top border starting from column A to the LastCol for any row where text is detected in that cell of column A. The range for the detection process is from A5:A56. Thanks LastCol = Cells(3, Columns.Count).End(xlToLeft).Column With Range(Cells(2, 1), Cells(2, LastCol + 5)) .Borders(xlEdgeTop).LineStyle = xlNone End With With Range(Cells(2, 1), Cells(2, LastCol)) .Borders(xlEdgeTop).Weight = xlThick End With As an example if cell A11 contained any text then a top border would be applied starting from A11 to the last column. The last column (LastCol) is an interger that changes depending a cell. Bill |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Text overlapping cell border above it | Excel Discussion (Misc queries) | |||
How to apply a name to a cell range | Excel Discussion (Misc queries) | |||
Apply Hyperlink to Text in Cell | Excel Discussion (Misc queries) | |||
Apply Border | Excel Programming | |||
Apply Border based on last Day of Month | Excel Programming |