Can someone help please. I'm trying to assign a variable to count a column of data starting from, in my case cell G197, to the last non blank cell in the column. The data is added to daily so will always change.
I've been trying: nr = ActiveSheet.Range("g197", ActiveSheet.Cells(Rows.Count, 1).End(xlUp)).Rows.Count
but this only counts 2.
Any ideas please as to where I'm going wrong.
I've been trying: nr = ActiveSheet.Range("g197", ActiveSheet.Cells(Rows.Count, 1).End(xlUp)).Rows.Count
but this only counts 2.
Any ideas please as to where I'm going wrong.