F
Flip Kalee
Hi group,
Some time ago Jonathan West helped me out to do some layout on imported
texts (this is still working great, Jonathan!)
This is how a certain style is activated depending on a paragraphs length
Dim oPara As Paragraph
For Each oPara In ActiveDocument.Content.Paragraphs
If Len(oPara.Range.Text) = 78 Then
oPara.Style = ("STYLE1")
End If
If Len(oPara.Range.Text) = 63 Then
oPara.Style = ("STYLE2")
End If
Next oPara
My problem:
I want to delete every paragraph shorter then three chars including empty
ones.
Can this be done with an extra If -- End If loop
If Len(oPara.Range.Text) < 3 Then
...
End If
Or do I need something else here?
We are on Office97 and 2000
Flip Kalee
Some time ago Jonathan West helped me out to do some layout on imported
texts (this is still working great, Jonathan!)
This is how a certain style is activated depending on a paragraphs length
Dim oPara As Paragraph
For Each oPara In ActiveDocument.Content.Paragraphs
If Len(oPara.Range.Text) = 78 Then
oPara.Style = ("STYLE1")
End If
If Len(oPara.Range.Text) = 63 Then
oPara.Style = ("STYLE2")
End If
Next oPara
My problem:
I want to delete every paragraph shorter then three chars including empty
ones.
Can this be done with an extra If -- End If loop
If Len(oPara.Range.Text) < 3 Then
...
End If
Or do I need something else here?
We are on Office97 and 2000
Flip Kalee