Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 02-05-2016, 05:53 PM
macropod's Avatar
macropod macropod is offline Inserting and rearranging text by inspecting existing text Windows 7 64bit Inserting and rearranging text by inspecting existing text 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

To do that, replace:
With ActiveDocument.Range
with:
Dim RngFnd As Range
Set RngMain = Selection.Range
With Selection.Range
and insert:
If Not .InRange(RngMain) Then Exit Sub
before:
If .Font.Bold = 9999999 Or .Font.Italic = 9999999 Then
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Inserting and rearranging text by inspecting existing text Entering new text in different color in an existing document davidbish79 Word 4 03-03-2015 12:58 AM
how to add text to a document without existing text moving around? Athalwolf Word 7 12-16-2014 05:16 PM
Inserting and rearranging text by inspecting existing text Text format different than existing one Manrak Word 1 08-11-2013 04:51 PM
Macro for tagging and rearranging selected text for revision caotico Word VBA 0 03-28-2012 06:35 PM
Formatting existing text Kaila Word 0 09-03-2011 05:40 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:46 AM.


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