How do you loop through a cell range in Excel?
For example, i want the code to look through each cell in:-
Worksheets(1).Range("G7:G9".
I have tried this:-
For Each r In Worksheets(1).Range("G7:G9" 'where r is dimmed as range
but it doesnt loop through the range.
Thanks
Matt
For example, i want the code to look through each cell in:-
Worksheets(1).Range("G7:G9".
I have tried this:-
For Each r In Worksheets(1).Range("G7:G9" 'where r is dimmed as range
but it doesnt loop through the range.
Thanks
Matt