excel vba - VBA_Using UsedRange.Count but failed -
this question has answer here:
- error in finding last used cell in vba 10 answers
i met little problem when use: count_line = activesheet.usedrange.rows.count
count how many lines have in worksheet. can not give me correct number. can influenced format of cells? cause i've different coulour highlight important columns. if you've got sime idea, please leave comment. thank you!
usedrange.rows.count not reliable way pull last row, doesn't account empty rows @ start of sheet. assuming finding last row text in it, use end method find row.
Comments
Post a Comment