Sub SB()
Application.OnKey "{BACKSPACE}", "NEXTTAB"
End Sub
Sub NEXTTAB()
If ActiveSheet.Index < Sheets.Count Then
Sheets(ActiveSheet.Index + 1).Select
End If
End Sub
This code will do it with backspace. Run the sub SB, then every time you hit backspace, it will select the next sheet.
Code:Sub SB() Application.OnKey "{BACKSPACE}", "NEXTTAB" End Sub Sub NEXTTAB() If ActiveSheet.Index < Sheets.Count Then Sheets(ActiveSheet.Index + 1).Select End If End Sub
This code will do it with backspace. Run the sub SB, then every time you hit backspace, it will select the next sheet.
Code:Sub SB() Application.OnKey "{BACKSPACE}", "NEXTTAB" End Sub Sub NEXTTAB() If ActiveSheet.Index < Sheets.Count Then Sheets(ActiveSheet.Index + 1).Select End If End Sub
this is great Thankyou - what would be the alternative to go to the previous tab - again assigning another key for this action