Forum Discussion
Frank Drucker
Nov 26, 2020Copper Contributor
Macros and VBA
I'm trying to move a specified row to the top of the screen. This seems to be easy enough but when I "select" a cell that I want to be on top, it appears somewhere else. Even when I just page down (s...
- Nov 26, 2020
You can use Application.GoTo with True as second argument. For example, to scroll cell A20 on the active sheet to the top:
Application.Goto Range("A20"), TrueIt even works with a cell on another sheet. That sheet will be activated. To scroll cell A20 on Sheet2 to the top:
Application.Goto Worksheets("Sheet2").Range("A20"), True
HansVogelaar
Nov 26, 2020MVP
You can use Application.GoTo with True as second argument. For example, to scroll cell A20 on the active sheet to the top:
Application.Goto Range("A20"), True
It even works with a cell on another sheet. That sheet will be activated. To scroll cell A20 on Sheet2 to the top:
Application.Goto Worksheets("Sheet2").Range("A20"), True- Frank DruckerNov 26, 2020Copper Contributor