S
Steved
Hello from Steved
I have 1 paragraph it has over 8500 lines
I would like the macro below to use 800 of the 8500 lines.
Each line I want the macro to do is unique in that
it is numeric and the font size is arial 30
Ok using below please what would be needed to find font
arial 30 and do each 800 lines. "Each line Starts with
font arial 30".
Thankyou.
Sub dictionary3()
Dim oPrg As Paragraph
Dim sTmp As String
Dim lPos As Long
For Each oPrg In ActiveDocument.Range.Paragraphs
oPrg.Range.Select
Selection.Collapse
Selection.Bookmarks("\line").Select
sTmp = Selection.Bookmarks("\line").Range.Text
sTmp = Left(sTmp, Len(sTmp) - 1)
lPos = InStr(1, sTmp, " ")
lPos = InStr(lPos + 1, sTmp, " ")
sTmp = Right(sTmp, Len(sTmp) - lPos)
lPos = InStr(sTmp, "(")
sTmp = Left(sTmp, lPos - 2)
Selection.Bookmarks("\line").Range.Text = sTmp & Chr
(11)
Next
End Sub
I have 1 paragraph it has over 8500 lines
I would like the macro below to use 800 of the 8500 lines.
Each line I want the macro to do is unique in that
it is numeric and the font size is arial 30
Ok using below please what would be needed to find font
arial 30 and do each 800 lines. "Each line Starts with
font arial 30".
Thankyou.
Sub dictionary3()
Dim oPrg As Paragraph
Dim sTmp As String
Dim lPos As Long
For Each oPrg In ActiveDocument.Range.Paragraphs
oPrg.Range.Select
Selection.Collapse
Selection.Bookmarks("\line").Select
sTmp = Selection.Bookmarks("\line").Range.Text
sTmp = Left(sTmp, Len(sTmp) - 1)
lPos = InStr(1, sTmp, " ")
lPos = InStr(lPos + 1, sTmp, " ")
sTmp = Right(sTmp, Len(sTmp) - lPos)
lPos = InStr(sTmp, "(")
sTmp = Left(sTmp, lPos - 2)
Selection.Bookmarks("\line").Range.Text = sTmp & Chr
(11)
Next
End Sub