Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can you select all of the bold text in a document? I would like to just extract bold text from numerous documents. Is there a script that could be run?

share|improve this question
What exactly do you mean by a document? A Word document, HTML, PDF? – Gerrie Schenck Nov 5 '09 at 19:35
Also what operating system are you running? – John T Jan 18 '10 at 3:36
And what version of word ? – Rook Jan 18 '10 at 3:48
You do know that you can select all text that is under a certain style, so if one has properly edited the document something like that would be possible. Unfortunatelly, if no such option exists, I think it i snot possible. Word doesn't offer selection by text properties. – Rook Jan 18 '10 at 3:49

If you are referring to Word documents, you can use a VBA macro:

Open "C:\boldtext.txt" For Append As #1
Selection.Find.Font.Bold = True
Write #1, Selection.Find.Text
Close #1

If it works as planned, it should add all bolded text in a document to a text file C:\boldtext.txt, where of course, it will no longer be bolded. I've never used VBA, just looked through a tutorial briefly and came up with this, maybe someone can test this for me?

share|improve this answer

You must log in to answer this question.