Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default 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??
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default 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??


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default 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??



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default 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??



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default 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??




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default 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??


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default 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 -


  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default 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??


  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default 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 -


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hyperlink from one.xlsx cell to another two.xlxs cell & click back Bobbi-Joe Excel Worksheet Functions 1 August 7th 09 07:18 PM
How do I create a hyperlink to a cell with the hyperlink function S. Bevins Excel Worksheet Functions 2 July 20th 06 08:06 PM
How make hyperlink refer to cell content rather than cell address. Omunene Excel Discussion (Misc queries) 3 March 2nd 06 01:07 AM
Copy hyperlink from one cell to/as hyperlink in another cell YogS Excel Worksheet Functions 6 January 12th 06 11:57 PM
Using paste link infromation in cell to hyperlink to source cell? Wayne Excel Worksheet Functions 7 February 27th 05 07:38 PM


All times are GMT +1. The time now is 05:56 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"