ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Go to a specific cell (https://www.excelbanter.com/excel-discussion-misc-queries/245314-go-specific-cell.html)

dhstein

Go to a specific cell
 
I want to have a macro that's goes to a specific part of the spreadsheet -
for example BB1. But I want BB1 to be in the left corner of the window. If
I just Select the cell it might not do that. How do I go to that cell and
ensure that the window is correct - the cells to the left of BB1 are not
visible. Thanks for any help on this.


Atishoo

Go to a specific cell
 
Application.Goto reference:=Range("A2"), scroll:=True


"dhstein" wrote:

I want to have a macro that's goes to a specific part of the spreadsheet -
for example BB1. But I want BB1 to be in the left corner of the window. If
I just Select the cell it might not do that. How do I go to that cell and
ensure that the window is correct - the cells to the left of BB1 are not
visible. Thanks for any help on this.


Atishoo

Go to a specific cell
 
Application.Goto reference:=Range("bb1"), scroll:=True


"dhstein" wrote:

I want to have a macro that's goes to a specific part of the spreadsheet -
for example BB1. But I want BB1 to be in the left corner of the window. If
I just Select the cell it might not do that. How do I go to that cell and
ensure that the window is correct - the cells to the left of BB1 are not
visible. Thanks for any help on this.



All times are GMT +1. The time now is 05:27 PM.

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