P
Peter KNAP
I have problem with this macro:
Dim i As Long
i = 5
Dim source As Document, target As Document
Set source = ActiveDocument
Set target = Documents.Add
target.Range.FormattedText = source.Sections(i).Range.FormattedText
After user click last button of user form just appropriate section of active
document is shown. This is perfect however problem is that it always inserts
one empty page at the end of section. I thought it is problem with formatting
of text but it is plenty of place at the end of page for text (so I think
problem is not with page or section brake).
Could somebody help?
peter
Dim i As Long
i = 5
Dim source As Document, target As Document
Set source = ActiveDocument
Set target = Documents.Add
target.Range.FormattedText = source.Sections(i).Range.FormattedText
After user click last button of user form just appropriate section of active
document is shown. This is perfect however problem is that it always inserts
one empty page at the end of section. I thought it is problem with formatting
of text but it is plenty of place at the end of page for text (so I think
problem is not with page or section brake).
Could somebody help?
peter