ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Application.GoTo (https://www.excelbanter.com/excel-programming/320356-application-goto.html)

Ashman

Application.GoTo
 
Hi all,

I am trying to use Excel VB to select a cell on a worksheet and make it
visible, ie not just selecting it, but moving the screen to show that
selected cell.

I think this is application.goto function, but not sure how to use it,
reference books letting me down.

Can someone help me?

JulieD

Application.GoTo
 
Hi Ashman

help in ver 2003 gives the following example:
---
Application.Goto Reference:=Worksheets("Sheet1").Range("A154"), scroll:=True
---
which works fine for me. Does this do what you want?

Cheers
JulieD

"Ashman" wrote in message
...
Hi all,

I am trying to use Excel VB to select a cell on a worksheet and make it
visible, ie not just selecting it, but moving the screen to show that
selected cell.

I think this is application.goto function, but not sure how to use it,
reference books letting me down.

Can someone help me?




Ashman

Application.GoTo
 
Many thanks, worked very well and does exactly what I wanted.

"JulieD" wrote:

Hi Ashman

help in ver 2003 gives the following example:
---
Application.Goto Reference:=Worksheets("Sheet1").Range("A154"), scroll:=True
---
which works fine for me. Does this do what you want?

Cheers
JulieD

"Ashman" wrote in message
...
Hi all,

I am trying to use Excel VB to select a cell on a worksheet and make it
visible, ie not just selecting it, but moving the screen to show that
selected cell.

I think this is application.goto function, but not sure how to use it,
reference books letting me down.

Can someone help me?






All times are GMT +1. The time now is 02:56 PM.

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