Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-06-2015, 08:00 PM
mrlemmer11 mrlemmer11 is offline Selection.Click command? or something similar? Windows 7 32bit Selection.Click command? or something similar? Office 2010 32bit
Novice
Selection.Click command? or something similar?
 
Join Date: Jun 2015
Posts: 13
mrlemmer11 is on a distinguished road
Default 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!
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
ActiveX Command Button disappears after click Bengt Word VBA 1 09-18-2013 12:42 PM
Selection.Click command? or something similar? Selection of all Text for a specific page in word is spanning selection across pages ramsgarla Word VBA 9 12-05-2012 03:23 AM
Selection.Click command? or something similar? Edit Links Command Selection nkg Word 1 02-19-2012 07:21 PM
Word doc bug when closing from userform command button click macro Joe Patrick Word 1 07-05-2011 08:53 PM
Add-In:How to add command right click command bar phang Outlook 0 01-15-2007 02:53 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:24 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft