Selection.Click command? or something similar?
So,
I would like to run some code if a user clicks on a word/phrase only if it is highlighted.
Essentially, no matter where they are in a document, i will have 5 words/phrases highlight for them dynamically. I do not know what words they will be, or where they will be at, and they will not be selecting/(clicking and dragging) their cursor over the. I simply want the user to see these 5 highlighted words/phrases, they be like 'Oh the first two don't matter but i need the third one' and then they press alt while left clicking.... that would then trigger my code which says, hey, is the word they user is alt-clicking over highlighted? it is? Awesome, do this.
p.s. I have all the highlighting code done. I just need to know how an alt-click over something would ask a macro determine if that alt-click in fact happened over highlighted text.
Thanks!
|