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

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Watch MrExcel Video

Forum statistics

Threads
1,129,361
Messages
5,635,812
Members
416,884
Latest member
leeshjay

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