Jump to specific worksheet in workbook

  • Thread starter Thread starter Allison
  • Start date Start date
A

Allison

I have a workbook with more than 70 pages. I have a menu
page that takes me to a specific worksheet (I used this
feature from ASAP) but I need to know how to put a button
or hyperlink on all of the other pages so when the user
clicks, it takes them back to the menu page when they are
done with the current worksheet.

Thanks

Allison
 
Assume you menu sheet is named TOC

Sub AddHyperlinks()
For Each sh In ActiveWorkbook.Worksheets
If LCase(sh.Name) <> "toc" Then
ActiveSheet.Hyperlinks.Add _
Anchor:=sh.Range("A1"), _
Address:="", _
SubAddress:="TOC!A1"
End If
Next
End Sub
 
Tom,

Thanks. I will give this a try.

Allison

-----Original Message-----
Assume you menu sheet is named TOC

Sub AddHyperlinks()
For Each sh In ActiveWorkbook.Worksheets
If LCase(sh.Name) <> "toc" Then
ActiveSheet.Hyperlinks.Add _
Anchor:=sh.Range("A1"), _
Address:="", _
SubAddress:="TOC!A1"
End If
Next
End Sub

--
Regards,
Tom Ogilvy




.
 

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