Hyperlink to a specific worksheet in another workbook

R

Romileyrunner1

Hi,
is there a way to hyperlink from one workbook to a specific worksheet in
another workbook.
I have a collumn of numbers from 1-80.
I would like to click on each cell and be taken to a corresponding worksheet
numbered 1-80 ina diffferent workbook.
I can easily go to that workbook but I can`t specify the worksheet: it just
takes me to the last viewed worksheet.

Any ideas guys?
Thanks
RR1
 
G

Gord Dibben

Using event code code.

Private Sub Worksheet_BeforeDoubleClick(ByVal _
Target As Range, Cancel As Boolean)
Const WS_RANGE As String = "A1:A80"
If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
Workbooks.Open Filename:= _
"C:\Program Files\Microsoft Office\Exceldata\Book1.xls"
ActiveWorkbook.Sheets(Target.Value).Activate
End If
End Sub

Edit the path and filename to suit.


Gord Dibben MS Excel MVP
 
L

Luke M

Something like this should work:

=HYPERLINK("[C:\My Documents\Mybook.xls]"&A2&"!A1",A2)

Note that this takes you to the workbook "Mybook", cell "A1" of the sheet
called out in cell A2, and displays a friendly name of whatever is in cell
A2. You can learn more about the HYPERLINK function in the XL help file.
 
F

FSt1

hi
i think your question was answered in the previous post but try something
like this....
=HYPERLINK([workbook1.xls]sheet1!$A$1,"gotoit1")

regards
FSt1
 

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

Top