#1
|
|||
|
|||
Keyboard shortcuts to Tag Text
Hello Everyone,
Could you please let me know whether there is a function in MS Word to use keyboard shortcuts to tag text that is being highlighted. For example, I have the following text: "Had strictly mrs handsome mistaken cheerful. We it so if resolution invitation remarkably unpleasant conviction. As into ye then form." I am looking for a way whereas I can highlight a phrase "handsome mistaken", click on a keyboard shortcut and end up with the following: "Had strictly mrs <r>handsome mistaken</r> cheerful. We it so if resolution invitation remarkably unpleasant conviction. As into ye then form." I would greatly appreciate any tips from this community. Best regards, |
#2
|
||||
|
||||
If all you want to do is replace every instance of 'handsome mistaken' with '<r>handsome mistaken</r>', that could be done via Find/Replace.
If you want to be able to select some text, then apply the <r> & </r> tags, that could be done via a macro to which you could assign a keyboard shortcut.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Hi macropod,
Thank you for your reply. It is actually the latter option. Any chance you could point me in the direction of finding out more about how to write such a macro. In the past, I only "recorded" macros, but I don't think this would work in this case. |
#4
|
||||
|
||||
Such a macro could be as simple as:
Code:
Sub Add_R_Tags() With Selection .InsertBefore "<r>" .InsertAfter "</r>" End With End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
Thank you for your help! I will try to use this one.
|
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help with re setting keyboard shortcuts | ayesha1620 | Word | 2 | 06-25-2014 07:00 AM |
Is there a way to list all keyboard shortcuts? | Jennifer Murphy | Word | 1 | 08-02-2012 01:48 PM |
Can I turn off keyboard shortcuts? | martinlest | Outlook | 1 | 06-10-2012 09:49 PM |
Keyboard shortcuts not working | Ulodesk | Word | 2 | 04-09-2012 05:24 PM |
Impermanent keyboard shortcuts | Subligaria | Word | 2 | 11-01-2011 12:41 PM |