![]() |
|
#1
|
|||
|
|||
|
hi, i have a looping action for each Sentence and for each paragraph. But i would like to loop through each Line. is this possible?
Code:
Public Sub ParseLines()
'SPLIT BY PARAGRAPHS
Dim singleLine As Paragraph
Dim lineText As String
For Each singleLine In ActiveDocument.Paragraphs
lineText = singleLine.Range.Text
MsgBox lineText
Next singleLine
End Sub
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Loop through Word doc to find and reformat text
|
Sandy27 | Word VBA | 5 | 01-06-2014 03:48 PM |
Loop action in Word until not found
|
kilburfi | Word VBA | 2 | 07-12-2013 01:26 AM |
How to a For loop in VBA
|
Jennifer Murphy | Word VBA | 1 | 01-29-2013 03:30 AM |
Macro to loop in Word
|
Yamaha Rider | Word VBA | 2 | 02-07-2012 05:33 PM |
WORD Macro - import picture - resize - position - page break - loop
|
Nano07 | Word VBA | 2 | 11-02-2011 05:14 AM |