Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
put the following code in your worksheet event: Private Sub Worksheet_Activate() me.range("A2").select End Sub -----Original Message----- 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 . |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
right click on the sheet tabview codeleft window select worksheetright
window select activateuse range("a1").select If you want for all worksheets, look in the ThisWorkbook module for the same thing. -- Don Guillett SalesAid Software "Bob Reynolds" wrote in message ... 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 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks to both of you,
That's a neat trick that I learned from you, Don. Thanks a lot Bob "Don Guillett" wrote in message ... right click on the sheet tabview codeleft window select worksheetright window select activateuse range("a1").select If you want for all worksheets, look in the ThisWorkbook module for the same thing. -- Don Guillett SalesAid Software "Bob Reynolds" wrote in message ... 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Opening on a specific worksheet | Excel Discussion (Misc queries) | |||
Opening specific worksheet from hyperlink more questions | Excel Discussion (Misc queries) | |||
opening a worksheet at a specific point | New Users to Excel | |||
Opening specific worksheet from hyperlink | Excel Discussion (Misc queries) | |||
Displaying a specific worksheet on opening application | Excel Programming |