looking for the one button take me from Sheet1!C4 to Sheet2!C4

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am looking for a one button shortcut that will take me from worksheet to worksheet with the same row and column
 
Attach this macro to your button:

Public Sub Button1_Click()
Dim nNext As Integer
With ActiveSheet
If .Index = Worksheets.Count Then
nNext = 1
Else
nNext = .Index + 1
End If
End With
Application.Goto Worksheets(nNext).Range(ActiveCell.Address)
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top