Macro - Hyperlink Cell A1 in all but one worksheets to Cell

Cosmos75

Active Member
Joined
Feb 28, 2002
Messages
359
How do I Hyperlink the cell A1 in all worksheets but one (actually need to exclude more than one, although code for excluding one will probably be easy enough to change) to cell A1 in excluded worksheet (named SUMMARY?

I want the included worksheeets to have the cell A1 to hyperlink back to cell A1 in the worksheet called SUMMARY.

Is there a macro that I can create to help choose which worksheet to view? Maybe a combo box on each page? BUT I need those combo boxes to appear automatically on each worksheet and be popoulated automatically since this workbook is update continually.

Any ideas?
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hi Cosmos75,

The following macro will hyperlink cell A1 on all worksheets to A1 on the worksheet named "Summary".

Sub HyperlinkSheets()
'Hyperlinks cell A1 on all worksheets to A1 on worksheet Summary
'(except for Summary itself, of course)
Dim Sh As Object
For Each Sh In Sheets
If Sh.Name <> "Summary" Then
Sh.Hyperlinks.Add Anchor:=Sh.[a1], Address:="", _
SubAddress:="Summary!A1", _
TextToDisplay:="Go to Summary"
End If
Next Sh
End Sub
 
Upvote 0
Damon Ostrander,

Thanks, works great! Saved me a lot of time from having to do that manually!

Know if the second part of my post is possible?
 
Upvote 0

Forum statistics

Threads
1,214,405
Messages
6,119,315
Members
448,886
Latest member
GBCTeacher

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