vb中如何返回excel的行数
来源:百度知道 编辑:UC知道 时间:2024/06/01 11:06:59
在vb中,我想知道EXCEL有多少行,用什么函数呢?
With ActiveSheet.UsedRange
x = .Cells(.Rows.Count, .Columns.Count).Row
y = .Cells(.Rows.Count, .Columns.Count).Column
End With
[A65536].End(xlUp).Row
worksheet1.UsedRange.Rows.Count