#1
|
|||
|
|||
Deleting all text except text of a certain font size
Background/Context:
For work, I frequently need to read long PDF's. I don't need to read them for perfect comprehension and I am capable of listening to content at a much faster speed than I can read it myself. I have a text to speech program I am happy enough with (Text Aloud). The problem is that the PDF's are heavilly footnoted, and I do not want to include the footnotes in the audio. The solution I have found is to convert the PDF to word. The word versions include the footnote text as regular body text (i.e. not in the footer), but put them in smaller font than the body text. The exact font size varies (even within the same document), do to imperfect OCR comprehension.Question: I understand how to use wildcards ^? and formatting rules to replace all text of a certain format with nothing and thereby delete it. How can I use VBA or some other feature, to remove ALL text that is NOT of a certain formating trait, within manually running the replace function many times? Last edited by JustAboutNoon; 10-08-2014 at 10:03 AM. Reason: formatting |
#2
|
||||
|
||||
Can you post a sample document? You can attach files to the forum if you click Go Advanced.
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#3
|
||||
|
||||
A fairly simple non-vba way to extract all text of a given attribute is to
• mark all the text as hidden • use Find/Replace to find all text in your attribute and format as unhidden • copy the document, then use Paste Special>Unformatted text. This will delete all the hidden text. What remains is the text in your attribute. A fairly simple non-vba way to extract all text NOT of a given attribute is to use Find/Replace to find all text in your attribute and delete it. What remains is the content in not that attribute . In each case, you'd probably want to save the results as a new file...
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#4
|
|||
|
|||
Quote:
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Font size of track changes balloon text | Oryctolagus | Word | 1 | 11-13-2013 09:27 AM |
making text (size/font) non editable in CONTROLS box....possible? | bjsa06 | Word | 2 | 09-22-2013 09:58 PM |
Deleting text of all one style | mlp170738 | Word | 2 | 09-20-2012 06:41 AM |
Deleting and adding text | johnbiggsy | Word | 1 | 02-09-2010 08:45 PM |
Deleting text problem | XswordcraftX | Word | 2 | 11-17-2008 03:12 AM |