key stroke to switch tabs

It's worksheets I want to key stroke to. I.e the 3 worksheets the default workbook setting creates.
So if I'm currently viewing sheet1 I want a key stroke to switch to the next worksheet (sheet2)
 
Upvote 0

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
just recorded what i want to do but the problem is thats to sheet"2" not "next"! ????

Sub Macro1()
'
' Macro1 Macro
' Macro recorded 18/06/2014 by steph
'

'
Sheets("Sheet2").Select
End Sub
 
Last edited:
Upvote 0
bit of playing but finally got it. not a keystroke but good enough

Sub SheetTab()
'
' SheetTab Macro
' Macro recorded 18/06/2014 by lee
'
' Keyboard Shortcut: Ctrl+z
'
On Error Resume Next
Sheets(ActiveSheet.Index + 1).Activate
If Err.Number <> 0 Then Sheets(1).Activate
End Sub
 
Upvote 0
It is a mystery why (if?) the normal keystrokes were not OK for you.

This is only repeating what others have posted, but just in case it helps...

If you're on sheet 1 and want to get to sheet 2 that is CTRL-PAGEDOWN

Repeat to go one more worksheet down. For the opposite direction, CTRL-PAGEUP

No macro required. HTH. Regards
 
Upvote 0
No, it isn't because of Excel 2003. The shortcut has been around since 'forever'.

I can't recall why you're seeing non-standard (?) behaviour. Though I'm sure I've seen it in the past...

Suggest you look under ALT-T-O (options). I think there must be a setting to toggle it. I think it not a keyboard thing, but a setting. Like navigation keys or compatibility with Lotus. Or something..

I'll google too. Cheers
 
Upvote 0
Is there any worksheet protection in place? That can interfere with the shortcut depending on the settings.
 
Upvote 0
Google didn't help me much.

Can you check the CTRL key is working OK? (I know this seems unlikely when you've checked & found the same behaviour on a second computer.)
 
Upvote 0
Google didn't help me much.

Can you check the CTRL key is working OK? (I know this seems unlikely when you've checked & found the same behaviour on a second computer.)

Yep it works. And as above same action on another pc
 
Upvote 0

Forum statistics

Threads
1,215,455
Messages
6,124,937
Members
449,195
Latest member
Stevenciu

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