Hi,
I need a temporary Paragraphs variable in some Word 2000 VB code to store a selection of paragraphs obtained from the ActiveDocument.Paragraphs object.
I am new to VB and so have this qn: I have declared the object but now I need to set a reference to it. Is there a default empty Paragraphs object I can use?
My code looks like
Dim para As Paragraph
Dim tempParas As Paragraph
Set tempParas ..... ?
For Each para In ActiveDocument.Paragraphs
If (some condition) Then
tempParas.Add(para)
End If
Next para
Thanks in advance.
I need a temporary Paragraphs variable in some Word 2000 VB code to store a selection of paragraphs obtained from the ActiveDocument.Paragraphs object.
I am new to VB and so have this qn: I have declared the object but now I need to set a reference to it. Is there a default empty Paragraphs object I can use?
My code looks like
Dim para As Paragraph
Dim tempParas As Paragraph
Set tempParas ..... ?
For Each para In ActiveDocument.Paragraphs
If (some condition) Then
tempParas.Add(para)
End If
Next para
Thanks in advance.