I am trying to set a range for a set of columns (rg2) and rows by using Intersect. The rows are only to be selected for the range where there is a conditional "x" mark in a column. I can not set this loop as a range somehow or include this in the intersect range setting.
I appreciate anyone's advise.
I appreciate anyone's advise.
Code:
For Each c In Range(Cells(StartR, 2), Cells(StartR + Size - 1, 2))
If c = "x" Then Rows(c.Row).Hidden = False
Next c
' Set rg = Range(c.Row)
Set rg3 = Intersect(c.Row, rg2)