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.
我正在尝试编写一个将当前滚动ActiveCell到页面顶部的命令。
ActiveCell
与Activecell列中一样C,如果我使用下面的代码,它会移动A并B看不见。
Activecell
C
A
B
如何在不将 A 和 B 移出视野的情况下使用活动单元格向上滚动。
谢谢
Application.Goto ActiveCell, Scroll:=True
试试看嘛:
Sub Scroll() ActiveWindow.ScrollRow = ActiveCell.Row End Sub