![]() |
|
#1
|
|||
|
|||
|
I am writing a piece of code which parses the paragraphs of a document and uploads relevant bits to a server.
Consider a document in which three paragraphs exist, with Normal style. The first para contains no additional formatting. The second para is entirely bolded. One word only within the third para is bolded. Now, consider the following macro: Code:
Public Sub paratest()
Dim i As Integer
For i = 1 To ActiveDocument.Paragraphs.Count
With ActiveDocument.Paragraphs.Item(i)
Debug.Print .Range.Text
Debug.Print "Bold: ".Range.Bold
End With
Next
End Sub
Quote:
How can I programmatically discover which parts (text runs?) within each para have had additional formatting applied? |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Not Bold text but it comes up bold
|
Pluviophile | Word | 7 | 10-22-2013 10:29 AM |
| Format Bold in one line makes all lines bold | Nitte | Word | 2 | 02-07-2013 12:34 AM |
Set paragraph text to bold.
|
Sorcerer13 | Word | 1 | 09-04-2012 11:08 AM |
| Export Outlook emails to Access & parse certain text elements | smahale | Outlook | 0 | 01-18-2012 09:30 PM |
| parse, store and email a .tmp file from wordpad? | scadaman29325 | Office | 0 | 09-28-2010 04:56 PM |