Hello hello again,
As stated above, I have a list of data that i filtered by color. After the filter has been done I want to sort through the leftover list of rows and add a row above each.
As of right now this is what I have to find the rows, the next step being to add a row above each row.
Please advise and thank you.
As stated above, I have a list of data that i filtered by color. After the filter has been done I want to sort through the leftover list of rows and add a row above each.
As of right now this is what I have to find the rows, the next step being to add a row above each row.
Code:
' Store the row count as a variable
Dim TheLastRow As Long
TheLastRow = ActiveSheet.UsedRange.SpecialCells(xlCellTypeLastCell).Row
'Apply filter for InStock Inv
Rows("7:7").Select
Selection.AutoFilter
ActiveSheet.Range("$7:$31").AutoFilter Field:=2, Criteria1:=RGB(204, 255, _
255), Operator:=xlFilterCellColor
Please advise and thank you.