Solved

Macro to highlight a selected text in word 2007

Posted on 2011-09-14
3
289 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
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Outlook Free & Paid Tools
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
This Micro Tutorial well show you how to find and replace special characters in Microsoft Word. This is similar to carriage returns to convert columns of values from Microsoft Excel into comma separated lists.

744 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now