When opening a worksheet I want it to go to a specific cell

  • Thread starter Thread starter Bob Reynolds
  • Start date Start date
B

Bob Reynolds

Hello,
I'm trying to put vb code into my worksheet where each time a specific
worksheet's tab is selected, when it opens it will automatically go to cell
A1.

I've been all over the help and can't find it to work in my specific
circumstance.
Each time I click on the tab "sheet 1" I want A2 to automatically be the
active cell.

Any ideas?
Thanks
Bob Reynolds
 
Hi
put the following code in your worksheet event:

Private Sub Worksheet_Activate()
me.range("A2").select
End Sub
 
right click on the sheet tab>view code>left window select worksheet>right
window select activate>use

range("a1").select

If you want for all worksheets, look in the ThisWorkbook module for the same
thing.
 
Thanks to both of you,
That's a neat trick that I learned from you, Don. Thanks a lot
Bob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top