Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 06-05-2013, 03:34 PM
macropod's Avatar
macropod macropod is offline Trying to wrap HTML tags around multiple different words in one operation Windows 7 32bit Trying to wrap HTML tags around multiple different words in one operation Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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

You could change:
.Replacement.Text = "^&"
to:
.Replacement.Text = "<command>^&</command>"

Note that, with this approach, the entire replacement string is highlighted.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to wrap HTML tags around multiple different words in one operation Highlight and then replace multiple words redhin Word VBA 5 03-05-2013 05:42 AM
Trying to wrap HTML tags around multiple different words in one operation Create and populate multiple templates with merge tags jelarbey Word 1 10-09-2012 05:20 AM
Trying to wrap HTML tags around multiple different words in one operation How can I count multiple usage of the same words? coffee_king Word VBA 1 03-24-2012 07:52 PM
Attaching MSG file is stripped on send and HTML tags show on previewing prior to send Fantastic4 Outlook 0 01-09-2012 12:18 PM
Trying to wrap HTML tags around multiple different words in one operation Making Multiple Words Bold mtk989 Word 2 06-25-2011 11:27 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:23 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