Can I get different sheets to open on different cells?

jedibrown

Board Regular
Joined
Oct 17, 2011
Messages
136
I was just wondering if it was possible to open different sheets on different cells?

For Example, I want sheet 1 to open at A1 but I want sheet 2 to open at B5.

This is because the majority of cells are locked on some sheets so I want it to open on an unlocked cell.

I am using Excel 2010 and have command buttons linking each sheet.

Any help would be appreciated.

Thanks:cool:
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
When you select the sheet tab use the right mouse button and the from the drop down you can select worksheet then next drop down select Activate and add this code, jsut do this for each sheet if you want to activate different cells.

<font face=Courier New><SPAN style="color:#00007F">Private</SPAN> <SPAN style="color:#00007F">Sub</SPAN> Worksheet_Activate()<br>Range("B5").Activate<br><br><SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN></FONT>
 
Upvote 0
A simple VBA event handler procedure should do it:
Private Sub Worksheet_Activate()
Range("c1").Activate
End Sub

You can put this in the VBA code for the worksheet you want to open on cell C1.

Put another with Range("B5") (or whatever cell you want substitued for B5) in the VBA code for the next worksheet and so on.
 
Upvote 0

Forum statistics

Threads
1,223,445
Messages
6,172,176
Members
452,446
Latest member
walkman99

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