Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-05-2015, 08:58 PM
avla avla is offline Keyboard shortcuts to Tag Text Windows 7 64bit Keyboard shortcuts to Tag Text Office 2007
Novice
Keyboard shortcuts to Tag Text
 
Join Date: Feb 2015
Location: Canada
Posts: 3
avla is on a distinguished road
Default 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,
Reply With Quote
  #2  
Old 02-05-2015, 09:45 PM
macropod's Avatar
macropod macropod is offline Keyboard shortcuts to Tag Text Windows 7 64bit Keyboard shortcuts to Tag Text Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
  #3  
Old 02-05-2015, 09:51 PM
avla avla is offline Keyboard shortcuts to Tag Text Windows 7 64bit Keyboard shortcuts to Tag Text Office 2007
Novice
Keyboard shortcuts to Tag Text
 
Join Date: Feb 2015
Location: Canada
Posts: 3
avla is on a distinguished road
Default

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.
Reply With Quote
  #4  
Old 02-05-2015, 09:59 PM
macropod's Avatar
macropod macropod is offline Keyboard shortcuts to Tag Text Windows 7 64bit Keyboard shortcuts to Tag Text Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Such a macro could be as simple as:
Code:
Sub Add_R_Tags()
With Selection
  .InsertBefore "<r>"
  .InsertAfter "</r>"
End With
End Sub
For PC macro installation & usage instructions, see: http://www.gmayor.com/installing_macro.htm
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 02-05-2015, 10:41 PM
avla avla is offline Keyboard shortcuts to Tag Text Windows 7 64bit Keyboard shortcuts to Tag Text Office 2007
Novice
Keyboard shortcuts to Tag Text
 
Join Date: Feb 2015
Location: Canada
Posts: 3
avla is on a distinguished road
Default

Thank you for your help! I will try to use this one.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Keyboard shortcuts to Tag Text 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
Keyboard shortcuts to Tag Text Can I turn off keyboard shortcuts? martinlest Outlook 1 06-10-2012 09:49 PM
Keyboard shortcuts to Tag Text 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

Other Forums: Access Forums

All times are GMT -7. The time now is 11:35 AM.


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