AusGamers Forums
Show: per page
1
Excel help
Karmadelik
Brisbane, Queensland
153 posts
Is it possible to hyperlink a cell to switch to another worksheet within the same workbook?

Ive got a summary of some regions like 'Asia' 'Europe' etc, and would like it so when I double click on the cell it switches to the corresponding region.

Im not too excel savy, and google is overcomplicating things. Is it something I can do using a function or is it something like a macro?
02:25pm 19/08/11 Permalink
adBot
ads
Internet
--
ads keep websites free
02:25pm 19/08/11 Permalink
Mantra
Crusty old man
Brisbane, Queensland
3016 posts
Off the top of my head, the only way to do that would be to create a macro to select the sheet you want and do it from a button...
02:30pm 19/08/11 Permalink
BladeHunter
Sydney, New South Wales
4660 posts
Create a new sheet called TOC

List the sheet names in it

right click on the tab TOC and choose "View Code"

Paste this in:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Row >= 5 And Target.Row <= 12 And Target.Value <> "" And Target.Cells.Count = 1 Then Sheets(Target.Value).Select
End Sub

Change the 5 and the 12 in the code to the start and end rows of your toc

If you have a lot of sheets and don't want to list them manually, paste this code and run it

Sub ListSheets()
Dim WS As Worksheet
For Each WS In Worksheets
Sheets("TOC").Range("A" & Range("A" & Rows.Count).End(xlUp).Row + 1).Formula = WS.Name
Next
End Sub
03:33pm 19/08/11 Permalink
Karmadelik
Brisbane, Queensland
154 posts
Ahh sorted it another way...
right click cell
hyperlink
Place in this document, on the left hand side
and select the sheet


thanks anyway
03:58pm 19/08/11 Permalink
Obes
Brisbane, Queensland
9325 posts
sifn't pivot table that bad boy
04:16pm 19/08/11 Permalink
Dazhel
Gold Coast, Queensland
3833 posts
with office 2010 slicers too Obes
04:19pm 19/08/11 Permalink
Obes
Brisbane, Queensland
9326 posts
Hell yeah
04:31pm 19/08/11 Permalink
adBot
ads
Internet
--
ads keep websites free
04:31pm 19/08/11 Permalink
AusGamers Forums
Show: per page
1
This thread is archived and cannot be replied to.
 

Advertise with Us | Download Media Kit | Privacy Policy | Contact Us
© Copyright 2001-2012 AusGamers™ Pty Ltd. ACN 093 772 242.
A Mammoth Media web development, hosted by Mammoth VPS.