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

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,214,835
Messages
6,121,880
Members
449,057
Latest member
Moo4247

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
Back
Top