ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Center result on screen (https://www.excelbanter.com/excel-programming/415562-center-result-screen.html)

Mike H.

Center result on screen
 
I search through data and when I find the row I am looking for, I wish to
center the data on the screen. How do I do this?

Gary''s Student

Center result on screen
 
Hi Mike:

Sub center_it()
Application.Goto reference:=ActiveCell, scroll:=True
With ActiveWindow
i = .VisibleRange.Rows.Count / 2
j = .VisibleRange.Columns.Count / 2
..SmallScroll Up:=i, ToLeft:=j
End With
End Sub

--
Gary''s Student - gsnu200800


"Mike H." wrote:

I search through data and when I find the row I am looking for, I wish to
center the data on the screen. How do I do this?



All times are GMT +1. The time now is 01:21 AM.

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