Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: Mon, 14 Apr 2008 13:57:27 -0300,    group: microsoft.public.word.vba.beginners        back       


Looking for colored text   
I wasn't sure how to proceed/it if is possible...

I have a Word (2007) doc that I've highlighted manually.  Can I use VBA 
to pull out just the colored text?

I'd either copy the colored text to a new doc, or stip out the 
non-colored text from the current doc, then save it as a new name.

Marco

-- 
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp

PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com
date: Mon, 14 Apr 2008 13:57:27 -0300   author:   Marco Shaw [MVP]

Re: Looking for colored text   
"Marco Shaw [MVP]"  wrote in message 
news:e$NxkClnIHA.2328@TK2MSFTNGP03.phx.gbl...
>I wasn't sure how to proceed/it if is possible...
>
> I have a Word (2007) doc that I've highlighted manually.  Can I use VBA to 
> pull out just the colored text?
>
> I'd either copy the colored text to a new doc, or stip out the non-colored 
> text from the current doc, then save it as a new name.
>

The latter approach is probably easier. press Ctrl-H to display the Edit 
Replace dialog. Click the More button. With the cursor in the Find What 
textbox, click the Format button and select Font. on the dialog that 
appears, set the font color to Automatic. Then click Replace All. All the 
text that hasn't been coloured should be deleted.


-- 
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
date: Mon, 14 Apr 2008 18:16:50 +0100   author:   Jonathan West

Re: Looking for colored text   
> The latter approach is probably easier. press Ctrl-H to display the Edit 
> Replace dialog. Click the More button. With the cursor in the Find What 
> textbox, click the Format button and select Font. on the dialog that 
> appears, set the font color to Automatic. Then click Replace All. All the 
> text that hasn't been coloured should be deleted.
> 
> 

Thanks.  Actually the text was highlighted, but there was an option in 
there also.

This was definitely easier than using VBA!
date: Tue, 15 Apr 2008 10:34:47 -0300   author:   Marco Shaw [MVP]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us