Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找 VBA 代码来获取在任何列中有数据的最后一行的行号,即我想在整个工作表中搜索?
提前致谢
Application.ActiveSheet.UsedRange.rows.count
更新:问题评论中的链接说您不应该使用 UsedRange