hyperlink a single word within a sentence

tiredofit

Well-known Member
Joined
Apr 11, 2013
Messages
1,834
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
In my workbook, I have a cell that contains a long sentence.

Within the sentence, I want to be able to click on a particular word and in doing so, take me to a webpage.

For example, the sentence might be:

Please click me to navigate to the webpage.

and if the user clicks on the word me, it'll trigger a macro and take them to a specific webpage.

As far as I'm aware, it's not possible to trigger a macro by clicking only on a specific word within a sentence.

One alternative is to make the whole sentence a picture, then assign a macro to that picture.

What I've come up with is to have this sentence:

Please click [SPACE] to navigate to the webpage.

and then insert a picture of the word me where [SPACE] is and assign a macro to it.

The problem concerns alignment. If the user changes the zoom view, the "picture" me does move but not in line with the rest of the sentence.

Is there a way round this?

Thanks
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Have you considered placing each section of the sentence in separate adjacent columns.
 
Upvote 0
Have you considered placing each section of the sentence in separate adjacent columns.
Not really as I have other similar sentences but much longer (one even exceeds 255 characters) so it would be impractical.
 
Upvote 0

Forum statistics

Threads
1,215,343
Messages
6,124,394
Members
449,155
Latest member
ravioli44

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