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.
我有一个电子表格,在其中找到了一些跳转到第一个空行的代码:
lastRowA = Range("A" & Rows.Count).End(xlUp).Row + 1 ActiveWorkbook.Worksheets("RO input sheet").Range("A" & lastRowA).Select
我的问题是电子表格周围的条件已经改变,所以现在我需要调整代码,使其跳转到单元格 A 包含特定文本的第一行,例如“Test123”。
我怎样才能在 VBA 中做到这一点?
简单地替换整个代码:
ActiveWorkbook.Worksheets("RO input sheet").Columns(1).Find("Test123").Select