![]() |
Fomrulae to Hyperlink to cell in another tab with the same value/n
I'm looking for a way of inserting a formula based hyperlink that when
selected would navigate to a cell in another tab (same workbook) which had the same name. I know you can insert specific hyperkinks indivudally, but i have thousands of rows which when clicked on need to navigate to the same item (based on referrence id in cell) in another sheet?? |
Fomrulae to Hyperlink to cell in another tab with the samevalue/n
Do you mean that you would have a list of sheet names in a column and
you would want to click on one of them and move to a cell in that sheet? More details please, including the cells where the names are held. Pete On Aug 21, 12:18*pm, KH76 wrote: I'm looking for a way of inserting a formula based hyperlink that when selected would navigate to a cell in another tab (same workbook) which had the same name. I know you can insert specific hyperkinks indivudally, but i have thousands of rows which when clicked on need to navigate to the same item (based on referrence id in cell) *in another sheet?? |
Fomrulae to Hyperlink to cell in another tab with the same val
Thanks Pete, but that's not quite what i meant.
Column A of Sheet 1 and Sheet 2 both contain a name. I want to click on the name in sheet A and navigate to the same name in sheet 2 (without having to apply the hyperlinks individually). "Pete_UK" wrote: Do you mean that you would have a list of sheet names in a column and you would want to click on one of them and move to a cell in that sheet? More details please, including the cells where the names are held. Pete On Aug 21, 12:18 pm, KH76 wrote: I'm looking for a way of inserting a formula based hyperlink that when selected would navigate to a cell in another tab (same workbook) which had the same name. I know you can insert specific hyperkinks indivudally, but i have thousands of rows which when clicked on need to navigate to the same item (based on referrence id in cell) in another sheet?? |
Fomrulae to Hyperlink to cell in another tab with the same val
Right click on Sheet1 tab and ViewCode and paste the below code. Note that
the sheet is named as 'Sheet2' and you are trying from 'Sheet1'. Now get back to workbook and *** double click *** on a cell with text...it should take you to Sheet2 cell where the same text exists.... Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean) Dim varRange As Range Dim varFound As Variant If Target.Count = 1 Then If Trim(Target.Text) < "" Then Set varRange = Sheets("Sheet2").UsedRange Set varFound = varRange.Find(Target.Text) If Not varFound Is Nothing Then Sheets("Sheet2").Activate varFound.Select End If End If End If End Sub If this post helps click Yes --------------- Jacob Skaria "KH76" wrote: Thanks Pete, but that's not quite what i meant. Column A of Sheet 1 and Sheet 2 both contain a name. I want to click on the name in sheet A and navigate to the same name in sheet 2 (without having to apply the hyperlinks individually). "Pete_UK" wrote: Do you mean that you would have a list of sheet names in a column and you would want to click on one of them and move to a cell in that sheet? More details please, including the cells where the names are held. Pete On Aug 21, 12:18 pm, KH76 wrote: I'm looking for a way of inserting a formula based hyperlink that when selected would navigate to a cell in another tab (same workbook) which had the same name. I know you can insert specific hyperkinks indivudally, but i have thousands of rows which when clicked on need to navigate to the same item (based on referrence id in cell) in another sheet?? |
Fomrulae to Hyperlink to cell in another tab with the same val
Thanks Jacob, i've pasted the text in, but double clicking on the cell just
behaves like normal - ie. allows me to edit the text?..... "Jacob Skaria" wrote: Right click on Sheet1 tab and ViewCode and paste the below code. Note that the sheet is named as 'Sheet2' and you are trying from 'Sheet1'. Now get back to workbook and *** double click *** on a cell with text...it should take you to Sheet2 cell where the same text exists.... Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean) Dim varRange As Range Dim varFound As Variant If Target.Count = 1 Then If Trim(Target.Text) < "" Then Set varRange = Sheets("Sheet2").UsedRange Set varFound = varRange.Find(Target.Text) If Not varFound Is Nothing Then Sheets("Sheet2").Activate varFound.Select End If End If End If End Sub If this post helps click Yes --------------- Jacob Skaria "KH76" wrote: Thanks Pete, but that's not quite what i meant. Column A of Sheet 1 and Sheet 2 both contain a name. I want to click on the name in sheet A and navigate to the same name in sheet 2 (without having to apply the hyperlinks individually). "Pete_UK" wrote: Do you mean that you would have a list of sheet names in a column and you would want to click on one of them and move to a cell in that sheet? More details please, including the cells where the names are held. Pete On Aug 21, 12:18 pm, KH76 wrote: I'm looking for a way of inserting a formula based hyperlink that when selected would navigate to a cell in another tab (same workbook) which had the same name. I know you can insert specific hyperkinks indivudally, but i have thousands of rows which when clicked on need to navigate to the same item (based on referrence id in cell) in another sheet?? |
Fomrulae to Hyperlink to cell in another tab with the same val
Does the first line of code appear in red...?
The first line starting with Private and endin with Boolean) should be in one line OR 'you replace that with the below Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, _ Cancel As Boolean) If this post helps click Yes --------------- Jacob Skaria "KH76" wrote: Thanks Jacob, i've pasted the text in, but double clicking on the cell just behaves like normal - ie. allows me to edit the text?..... "Jacob Skaria" wrote: Right click on Sheet1 tab and ViewCode and paste the below code. Note that the sheet is named as 'Sheet2' and you are trying from 'Sheet1'. Now get back to workbook and *** double click *** on a cell with text...it should take you to Sheet2 cell where the same text exists.... Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean) Dim varRange As Range Dim varFound As Variant If Target.Count = 1 Then If Trim(Target.Text) < "" Then Set varRange = Sheets("Sheet2").UsedRange Set varFound = varRange.Find(Target.Text) If Not varFound Is Nothing Then Sheets("Sheet2").Activate varFound.Select End If End If End If End Sub If this post helps click Yes --------------- Jacob Skaria "KH76" wrote: Thanks Pete, but that's not quite what i meant. Column A of Sheet 1 and Sheet 2 both contain a name. I want to click on the name in sheet A and navigate to the same name in sheet 2 (without having to apply the hyperlinks individually). "Pete_UK" wrote: Do you mean that you would have a list of sheet names in a column and you would want to click on one of them and move to a cell in that sheet? More details please, including the cells where the names are held. Pete On Aug 21, 12:18 pm, KH76 wrote: I'm looking for a way of inserting a formula based hyperlink that when selected would navigate to a cell in another tab (same workbook) which had the same name. I know you can insert specific hyperkinks indivudally, but i have thousands of rows which when clicked on need to navigate to the same item (based on referrence id in cell) in another sheet?? |
Fomrulae to Hyperlink to cell in another tab with the same val
One way of doing it is to use a helper column in Sheet1 (eg column B),
and put this formula in B1: =HYPERLINK("#Sheet2!R"&MATCH(A1,Sheet2!A:A,0)&"C1" ,"jump") Copy it down and you will see Jump next to each name. Click on the appropriate cell and it will take you to the cell with the same name in Sheet2. Hope this helps. Pete On Aug 21, 1:17*pm, KH76 wrote: Thanks Pete, but that's not quite what i meant. Column A of Sheet 1 and Sheet 2 both contain a name. I want to click on the name in sheet A and navigate to the same name in sheet 2 (without having to apply the hyperlinks individually). "Pete_UK" wrote: Do you mean that you would have a list of sheet names in a column and you would want to click on one of them and move to a cell in that sheet? More details please, including the cells where the names are held. Pete On Aug 21, 12:18 pm, KH76 wrote: I'm looking for a way of inserting a formula based hyperlink that when selected would navigate to a cell in another tab (same workbook) which had the same name. I know you can insert specific hyperkinks indivudally, but i have thousands of rows which when clicked on need to navigate to the same item (based on referrence id in cell) *in another sheet??- Hide quoted text - - Show quoted text - |
Fomrulae to Hyperlink to cell in another tab with the same val
It worked! Magic - thanks Jacob!!
:-) "Jacob Skaria" wrote: Does the first line of code appear in red...? The first line starting with Private and endin with Boolean) should be in one line OR 'you replace that with the below Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, _ Cancel As Boolean) If this post helps click Yes --------------- Jacob Skaria "KH76" wrote: Thanks Jacob, i've pasted the text in, but double clicking on the cell just behaves like normal - ie. allows me to edit the text?..... "Jacob Skaria" wrote: Right click on Sheet1 tab and ViewCode and paste the below code. Note that the sheet is named as 'Sheet2' and you are trying from 'Sheet1'. Now get back to workbook and *** double click *** on a cell with text...it should take you to Sheet2 cell where the same text exists.... Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean) Dim varRange As Range Dim varFound As Variant If Target.Count = 1 Then If Trim(Target.Text) < "" Then Set varRange = Sheets("Sheet2").UsedRange Set varFound = varRange.Find(Target.Text) If Not varFound Is Nothing Then Sheets("Sheet2").Activate varFound.Select End If End If End If End Sub If this post helps click Yes --------------- Jacob Skaria "KH76" wrote: Thanks Pete, but that's not quite what i meant. Column A of Sheet 1 and Sheet 2 both contain a name. I want to click on the name in sheet A and navigate to the same name in sheet 2 (without having to apply the hyperlinks individually). "Pete_UK" wrote: Do you mean that you would have a list of sheet names in a column and you would want to click on one of them and move to a cell in that sheet? More details please, including the cells where the names are held. Pete On Aug 21, 12:18 pm, KH76 wrote: I'm looking for a way of inserting a formula based hyperlink that when selected would navigate to a cell in another tab (same workbook) which had the same name. I know you can insert specific hyperkinks indivudally, but i have thousands of rows which when clicked on need to navigate to the same item (based on referrence id in cell) in another sheet?? |
Fomrulae to Hyperlink to cell in another tab with the same val
You can also put a similar formula in B1 of Sheet2:
=HYPERLINK("#Sheet1!R"&MATCH(A1,Sheet1!A:A,0)&"C1" ,"jump") and copy this down, so that you can jump from one sheet to the other quite easily. Hope this helps. Pete On Aug 21, 2:21*pm, Pete_UK wrote: One way of doing it is to use a helper column in Sheet1 (eg column B), and put this formula in B1: =HYPERLINK("#Sheet2!R"&MATCH(A1,Sheet2!A:A,0)&"C1" ,"jump") Copy it down and you will see Jump next to each name. Click on the appropriate cell and it will take you to the cell with the same name in Sheet2. Hope this helps. Pete On Aug 21, 1:17*pm, KH76 wrote: Thanks Pete, but that's not quite what i meant. Column A of Sheet 1 and Sheet 2 both contain a name. I want to click on the name in sheet A and navigate to the same name in sheet 2 (without having to apply the hyperlinks individually). "Pete_UK" wrote: Do you mean that you would have a list of sheet names in a column and you would want to click on one of them and move to a cell in that sheet? More details please, including the cells where the names are held. Pete On Aug 21, 12:18 pm, KH76 wrote: I'm looking for a way of inserting a formula based hyperlink that when selected would navigate to a cell in another tab (same workbook) which had the same name. I know you can insert specific hyperkinks indivudally, but i have thousands of rows which when clicked on need to navigate to the same item (based on referrence id in cell) *in another sheet??- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - |
All times are GMT +1. The time now is 05:38 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com