Moving to a specific worksheet
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.
--
Gary's Student
" wrote:
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
|