ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Setting the view area (https://www.excelbanter.com/excel-programming/412610-setting-view-area.html)

Jeff Ciaccio

Setting the view area
 
I would like to set a certain cell at the upper left portion of the viewable
area. I have tried range("E1").select, bu this does not guarantee that E1
will be in the upper left of the viewable area.

Any suggestions?

Thanks

--
Jeff Ciaccio
Physics and AP Physics Teacher
Sprayberry High School; Marietta, GA
Blog: http://sprayberry.typepad.com/ciaccio


Don Guillett

Setting the view area
 
try
Sub setviewablearea()
Application.Goto Range("e6"), scroll:=True
End Sub
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Jeff Ciaccio" wrote in message
...
I would like to set a certain cell at the upper left portion of the
viewable area. I have tried range("E1").select, bu this does not guarantee
that E1 will be in the upper left of the viewable area.

Any suggestions?

Thanks

--
Jeff Ciaccio
Physics and AP Physics Teacher
Sprayberry High School; Marietta, GA
Blog:
http://sprayberry.typepad.com/ciaccio


Jeff Ciaccio

Setting the view area
 
Perfect! Thanks.
- Jeff

Don Guillett

Setting the view area
 
Glad to help

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Jeff Ciaccio" wrote in message
...
Perfect! Thanks.
- Jeff




All times are GMT +1. The time now is 07:26 AM.

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