I would like to replicate the format of the top row of an excel sheet to selected cells down each selected column.
- I cannot use conditional formatting or any formula in the destination cells, because they contain data and a different conditional formatting formula already.
The Entire Column is grouped. Over time, i may change the grouping level and dont want to re-format the entire sheet... the top row background color has a conditional formatting applied.. using the following formula.
Function OutlineLev(inp As Integer) As Integer OutlineLev = Columns(inp).OutlineLevel End Function
So in the example, cell background on row 1 group level 1 is orange, level 2 is blue and L3 is green. (conditional format rule =OutlineLev(CELL("col",D1))=3
)
- You can see that row 2 (yellow cells) have no content. Originally i thought i would hava a formula in that cell, to copy the format of the top row down to the other rows within each column...
Essentially. i am looking for a macro/function/formula that will somehow copy the background of the top row (say Cell D1 in example). down to the rest of the column (Range (D3:D9 in example).