Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 04-29-2013, 08:16 AM
d4okeefe d4okeefe is offline Find text, format part of text in italic Windows Vista Find text, format part of text in italic Office 2010 64bit
Advanced Beginner
Find text, format part of text in italic
 
Join Date: Apr 2013
Posts: 77
d4okeefe is on a distinguished road
Default

Thanks again for all your help, macropod.

I believe I figured out the problem, though I may have a difficult time explaining it clearly.

Here goes:

The .Text = "[!0-9],*>" line, generally, is fine. When I change [!0-9] to ?, reading .Text = "?,*>", the macro finds numbers as well as letters.

However, in the second example I gave,

In re Grand Jury Empanelled January 28, 2004, 401 F.3d 247

When "8, 2004" is found, the macro recognizes that the comma here should remain in italics. But it then jumps past the "4, 401" phrase, I believe. This seems to be because the "4" in 2004 is already part of the preceding range.

To give another example, when I run your original macro in a document with the text,

FW/PBS, Inc. v. City of Dallas, Texas, 493 U.S. 215

the comma after Texas remains in italics.

There seems to be an issue with how the macro is identifying ranges.

Help if you can. Thanks.

Last edited by d4okeefe; 04-29-2013 at 09:17 AM.
Reply With Quote
 

Tags
find, italics, msword, punctuation



Similar Threads
Thread Thread Starter Forum Replies Last Post
Find text, format part of text in italic Macro to find text and replace with form field containing that text iiiiifffff Word VBA 16 06-04-2016 01:47 AM
Macro to find text in between two characters and then format selected text? qcom Word 5 02-19-2015 11:23 PM
Find text, format part of text in italic Need help on Macro 03- Find text - if text is blank then remove line simpleonline1234 Word VBA 1 02-25-2011 02:28 AM
Objective: Automatically export email text,attachment text to DB friendly format SilentLee Outlook 0 11-14-2010 02:45 PM
Find text, format part of text in italic Can't print bold or italic text cornettd PowerPoint 1 05-10-2010 10:07 AM

Other Forums: Access Forums

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