ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Position A2 at top-left of window (https://www.excelbanter.com/excel-programming/377750-position-a2-top-left-window.html)

hmm

Position A2 at top-left of window
 
What is the code to write in order to scroll so that cell A2 will appear at
the top-left corner of the window?

Bob Phillips

Position A2 at top-left of window
 
With ActiveWindow
.ScrollRow = 2
.ScrollColumn = 1
End With

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"hmm" wrote in message
...
What is the code to write in order to scroll so that cell A2 will appear

at
the top-left corner of the window?




Chip Pearson

Position A2 at top-left of window
 
Try

Application.Goto reference:=Range("A2"), scroll:=True



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email on the web site)


"hmm" wrote in message
...
What is the code to write in order to scroll so that cell A2 will appear
at
the top-left corner of the window?





All times are GMT +1. The time now is 12:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com