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

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -