hyperlink a single word within a sentence

tiredofit

Well-known Member
Joined
Apr 11, 2013
Messages
1,832
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

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
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,214,375
Messages
6,119,170
Members
448,870
Latest member
max_pedreira

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