I'm looking to get the count of rows in column A. Before I was putting a formula into a cell and then pulling that value out of the cell and putting it into a variable. How can I avoid having to put this in the cell to get a count of the number of rows in column A that have a value?
Range("Z1").Formula = "=MATCH(9.9999999E+307,Richburg!A:A)"
Range("Z1").Font.Color = RGB(255, 255, 255)
Test = Range("Z1").Value
I also tried Test = Range(A:A).Count and that didn't work for me either. What am I doing wrong
Range("Z1").Formula = "=MATCH(9.9999999E+307,Richburg!A:A)"
Range("Z1").Font.Color = RGB(255, 255, 255)
Test = Range("Z1").Value
I also tried Test = Range(A:A).Count and that didn't work for me either. What am I doing wrong