Specific cell selected upon opening sheet

dago

New Member
Joined
May 18, 2002
Messages
29
Hi,

I cannot figure out how to have the selection of a cell on opening a sheet NOT automatically on cell A1. I want to be able to set the selection on opening a sheet per sheet. Do I need to set a Private Sub on each corresponding Sheet? And how would the code be?

(Let's say the user of my speadsheet has to start working in cell F15 on a given sheet)

Thanks in advance, Dago
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
If a certain cell is selected on a sheet when the workbook is saved to disk, then that is the selected cell on that sheet when the workbook is opened the next time.

Also, look into locking the cells on your sheets, except for those where the user can enter data. Then when the user presses the tab key, the selection moves to the next unprotected cell. After setting the cells to locked or unlocked, you need to protect the worksheet to get Excel to pay attention to the locking information.

If you need more positive control, then you would need to create a macro to run automatically when the workbook was opened.
For each worksheet in the workbook, you would need to do the following two statements in your macro:

Worksheets("Sheet2").Activate
Worksheets("Sheet2").Range("F15").Select

Don't forget to activate the sheet where you want the user to start as the last statement of your macro.
 
Upvote 0

Forum statistics

Threads
1,222,383
Messages
6,165,660
Members
451,983
Latest member
Raph24

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top