I would like to set a range in which the row range is from 2 - "column D end" and the column range is from 4 (or D) to "4 + iCount". Example: If iCount = 4 & the last value in column D is in row 22, then I would like the range to be Range(D2:H22) / Range(Cells(2, 4), Cells(22, 8)).
This is the macro I wrote:
Range(Cells(2, 4), Cells((Range("D1").End(xlDown)), 4 + iCount)).Interior.Color = vbBlue
The column range works, but it only selects the second row and does not go down to the row with the last value in column D.
Thanks guys!