Solved

Macro to highlight a selected text in word 2007

Posted on 2011-09-14
3
297 Views
Last Modified: 2012-08-13
Hi,
How to have a macro which runs as soon as I select a text in word to highlight it.

Cheers
0
Comment
Question by:RIAS
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 70

Expert Comment

by:KCTS
ID: 36536267
What are you trying to do - what's wrong the the highlighter tool ?
0
 

Author Comment

by:RIAS
ID: 36536282
thanks for the reply.
For using the highlighter tool ,I need to select a text and then highlight it.
Macro will be faster as soon as I select the text it will highlighted.

Cheers
0
 
LVL 19

Accepted Solution

by:
dlc110161 earned 500 total points
ID: 36537369
Macro's need events to trigger them. I think you will have terrible results if you try to tie something to the OnClick event. Most macros are setup so that they run when someone presses a key combination or clicks a button.

So, for your needs, I would suggest that you figure out the keystrokes for enabling the highlighter tool and then use that to highlight. That way you will eliminate your need for clicking the mouse. In Word 2007, I believe that ALT, H, I will highlight for you.

Dawn Bleuel
Word MVP
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
In a previous video Micro Tutorial here at Experts Exchange (http://www.experts-exchange.com/videos/1358/How-to-get-a-free-trial-of-Office-365-with-the-Office-2016-desktop-applications.html), I explained how to get a free, one-month trial of Office …
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question