L
~L
I'm trying to make the line
For Each r In Worksheets("data").Range("A2:A25000")
not evaluate blank cells by counting the number of populated cells using
For Each r In Worksheets("data").Range("A2:A" &
WorksheetFunction.CountA(Data!A2:A25000))
But when I do that, I get runtime error 1004.
What is the correct way to phrase that?
For Each r In Worksheets("data").Range("A2:A25000")
not evaluate blank cells by counting the number of populated cells using
For Each r In Worksheets("data").Range("A2:A" &
WorksheetFunction.CountA(Data!A2:A25000))
But when I do that, I get runtime error 1004.
What is the correct way to phrase that?