can we give a hyperlink to a cell value to call a macro code

anis_fuelindia

Board Regular
Joined
Aug 8, 2007
Messages
231
Hi All

I have a cell say A1 having value of 4.

A1=4

can i give this value (4) a hyperlink so that we can call a simple macro which will take me to A1 of sheet2.

Note: vlaue 4 should have a hyperlink (when we rolover it should show me a hand as like we see when we Rolover on buttons) and on click it should take me to A1 of sheet2

Hope i m clear...
 

Some videos you may like

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
In A1, replace the value 4 with this formula:

=HYPERLINK("[Book1.xls]Sheet2!A1",4)

changing the workbook name to suit.
 

anis_fuelindia

Board Regular
Joined
Aug 8, 2007
Messages
231
Thanks Andrew,

Its working fine....

can we do one additional thing....

when we go to sheet 2... there can we see only the value on which we have clicked....

Example
in sheet2 where values are like
Anis - 2
Andrew - 2
Sykes - 3

and when we click on 2 of sheet1 and when it comes to sheet 2 it only show me the value of Anis and Andrew and not for Sykes (using filter)

hope i m clear....


Thanks

Anis
 

Watch MrExcel Video

Forum statistics

Threads
1,122,658
Messages
5,597,403
Members
414,142
Latest member
Banyangt

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
Top