D
Dylan
So far I have managed to copy the section to the clipboard
with:
[SNIP]
For Each aSection In Target.Sections
If InStr(aSection.Headers
(wdHeaderFooterPrimary).Range, "Section 5") > 0 Then
Set aRange = aSection.Range
aRange.End = aRange.End - 1
aRange.Select
aRange.Paste
Flag = 0
Exit Sub
Else
Flag = 1
End If
Next aSection
If Flag = 1 Then
MsgBox "There was no Section 5", , "Error"
End If
[SNIP]
Now I want to paste this into another document then open
the next report, copy that section 6 to clipboard, paste
into other document (Appending the previous paste), open
next report, and so on.
Any help appreciated.
with:
[SNIP]
For Each aSection In Target.Sections
If InStr(aSection.Headers
(wdHeaderFooterPrimary).Range, "Section 5") > 0 Then
Set aRange = aSection.Range
aRange.End = aRange.End - 1
aRange.Select
aRange.Paste
Flag = 0
Exit Sub
Else
Flag = 1
End If
Next aSection
If Flag = 1 Then
MsgBox "There was no Section 5", , "Error"
End If
[SNIP]
Now I want to paste this into another document then open
the next report, copy that section 6 to clipboard, paste
into other document (Appending the previous paste), open
next report, and so on.
Any help appreciated.