Hi, I'm trying to create a button on 2 sheets so when I click the button, it will move to that sheet with the same cell reference, i.e. cell A30 on sheet 1 will move to A30 on sheet 2 and vice versa. Any help would be much appreciated.
Thanks
Harry
Hi, I'm trying to create a button on 2 sheets so when I click the button, it will move to that sheet with the same cell reference, i.e. cell A30 on sheet 1 will move to A30 on sheet 2 and vice versa. Any help would be much appreciated.
Thanks
Harry
Try
![]()
Application.Goto Sheet1.Cells(30, 1)
Hope that helps.
RoyUK
--------
For Excel Tips & Solutions, free examples and tutorials why not check out my web site
Free DataBaseForm example
Or try this if you want the button to select on the other sheet, the cell you have selected on the first sheet
![]()
Sub changesheet() Dim newcell newcell = ActiveCell.Address If ActiveSheet.Name = "Sheet1" Then Sheets("Sheet2").Activate Else Sheets("Sheet1").Activate Range(newcell).Select End Sub
Rule 1: Never merge cells
Rule 2: See rule 1
"Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".
Thanks very much for your help - Works a treat!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks