Selecting Cell to Jump to other sheets (macro, no hyperlink)

DavidWood

New Member
Joined
Aug 11, 2011
Messages
2
Hi, I am using Excel 2007 and I'm trying to run a macro to do the following:
Once a certain cell is selected, I want to jump to another sheet, but without using a hyperlink. I have a list of job #'s in a column and i want each one of the job #'s to be linked to its own individual page and cell. Here is my macro thus far:
Code:
Sub Move_Cursor_Appropriate_Account_Number()
   
    For I = 2 To Sheets.Count
    For CountRow = 1 To I - 1
    RowC = Row + CountRow
        If Worksheets("Sheet1").Cells(RowC, 4).Select Then
           Worksheets(I).Activate
           Range("B2").Select
        End If
        Next
        Next

End Sub

The error that came up stated "unable to get the select property of the range class"
I also tried using selection.address, but I couldn't figure out how to incorporate a variable length of a column.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Forum statistics

Threads
1,224,599
Messages
6,179,828
Members
452,946
Latest member
JoseDavid

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top