I have a question about how to get the number of rows of a worksheet. wks.GetNumRows seems to return a number no matter the last few rows is empty or not. What I really need is the number of rows that have value in it. It counts if that value is zero. I could not find a way of doing that. Can someone give a hand here? Thanks a lot.