Looking for colored text

J

Jonathan West

Marco Shaw said:
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.
 
M

Marco Shaw [MVP]

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top