Moving to a specific worksheet

M

marijuanated

Hi All,

Is it possible to move to a specific worksheet within Excel given the
sheet's name. This is something like a "Go to Worksheet" functionality.

Thanks,
Sundar
 
G

Gary''s Student

Usually just click the tab at the bottom of the window. If there too many
tabs then this macro:

Sub marij()
Dim s As String, w As Worksheet
s = InputBox("Enter destination sheet name: ", "Go To Sheet")
For Each w In Worksheets
If w.Name = s Then
w.Activate
Exit Sub
End If
Next
MsgBox (" sheet not found")
End Sub

will do the trick. The macro can easity be modified to pick up a sheet name
in a cell as well.
 
S

skatonni via OfficeKB.com

Right-click on the buttons to the left of the sheet tabs for a list to choose
from.
 
G

Gord Dibben

For a very nice macro solution see this google search thread.

http://snipurl.com/ydgp

Code by Bob Phillips.


Gord Dibben MS Excel MVP

Hi All,

Is it possible to move to a specific worksheet within Excel given the
sheet's name. This is something like a "Go to Worksheet" functionality.

Thanks,
Sundar

Gord Dibben MS Excel MVP
 
Top