Shape hyperlink changes based on cell value

chris186h

Board Regular
Joined
Mar 18, 2015
Messages
111
Hello all.
I have alot of shapes on my worksheet which i have tagged with a hyperlink.
What i would like to do is have the link changed based on a cell value.
In my workbook i have a sheet called 'Data' and cell C2 will either have the value 'Earlies', 'Lates', 'Nights'
If on my 'Data' sheet i put column heading of 'Earlies', 'Lates', 'Nights' in cells B3:D3
Cells A3:A6 i will put the title of what e.g. Apples, Pears, Grapes
B4:D6 will contain a list of my hyperlinks as text e.g. C:\Earlies Gr.xlsm
I would then like a shape to have the hyperlink based on the cell value of C2
If C2=Earlies
Button(shape) Grapes would open C:\Earlies Gr.xlsm
Button(shape) Apples would open C:\Earlies Apples.xlsm

Thanks for any help you can provide
 

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.

Forum statistics

Threads
1,171,630
Messages
5,876,545
Members
433,199
Latest member
guerin47

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