excel vba - VBA_Using UsedRange.Count but failed -


this question has answer here:

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

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -