Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all. The below snippet of code inserts a row at a change in data
in column A, and colors the row grey. Cells(x, 4).EntireRow.Insert shift:=xlDown Cells(x, 4).Offset(0, -3).Resize(1, LastCol).Interior.ColorIndex = 15 As opposed to inserting a row, I would like to create a border. I recorded the below code with the macro recorder, but can't seem to figure out how to incorporate the variables I have in the above code! With Selection.Borders(xlEdgeBottom) .Color = -16777024 .Weight = xlThick End With I attempted this, but obviously did not work! Thanks! With Cells(x, 4) .Offset(0, -3).Resize(1, LastCol).Borders (xlEdgeBottom) .Color = -16777024 .Weight = xlThick End With |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Insert a border into a header or footer in Excel 2007 | Excel Discussion (Misc queries) | |||
Insert xlBottom border to group data | Excel Programming | |||
Apply bottom border only on filled cells, leaves blank cells without border? | Excel Programming | |||
Insert Rows with Border Formatting | Excel Programming | |||
Changing the border of one cell s/n change the border of adjacent | Excel Discussion (Misc queries) |