A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
You are offsetting by two rows, but only resizing by one fewer.
This
Set rngIC2 = rngIC.Offset(2, 9).Resize(rngIC.Rows.Count - 1, 1).SpecialCells(xlCellTypeVisible)
Should be either this
Set rngIC2 = rngIC.Offset(2, 9).Resize(rngIC.Rows.Count - 2, 1).SpecialCells(xlCellTypeVisible)
or this
Set rngIC2 = rngIC.Offset(1, 9).Resize(rngIC.Rows.Count - 1, 1).SpecialCells(xlCellTypeVisible)
And this:
This part does not even run
'This does not work
' Dim lrowj2 As Long
' With ActiveSheet
' lrowj2 = Range("rngIC2" & Rows.Count).End(xlUp).Row
' Range("rngIC2" & lrowj2).FillDown
' End With
Might be
Dim lrowj2 As Long
With ActiveSheet
lrowj2 = .Cells(.Rows.Count, rngIC2.Column).End(xlUp).Row
.Cells(2, rngIC2.Column).Resize(lrowj2 - 1, 1).SpecialCells(xlCellTypeVisible).Value = 14
End With