D
David
I have a document that occasionally needs to add an
attachment.(Another doc) The decision to add or not is determined via
a command button from a userform.
The code that adds the second page in Landscape:
'Adds the appropiate attachments
If ufSTD.obAttachment Then
Selection.EndKey Unit:=wdStory
Selection.InsertBreak Type:=wdSectionBreakNextPage
With Selection.PageSetup
.Orientation = wdOrientLandscape
End With
Selection.InsertFile FileName:= _
"C:\My Documents\O&A\Attachment\!ATTACHMENT.doc", Range:="", _
ConfirmConversions:=False, Link:=False, Attachment:=False
This works very well. The second page is added in Landscape, BUT...
The added doc is a large single table. The top line is merged across
the entire table, and the top line loses it's center format. The
format is to the left.
When I view the attachment doc by itself everything is fine.
Any suggestions?
attachment.(Another doc) The decision to add or not is determined via
a command button from a userform.
The code that adds the second page in Landscape:
'Adds the appropiate attachments
If ufSTD.obAttachment Then
Selection.EndKey Unit:=wdStory
Selection.InsertBreak Type:=wdSectionBreakNextPage
With Selection.PageSetup
.Orientation = wdOrientLandscape
End With
Selection.InsertFile FileName:= _
"C:\My Documents\O&A\Attachment\!ATTACHMENT.doc", Range:="", _
ConfirmConversions:=False, Link:=False, Attachment:=False
This works very well. The second page is added in Landscape, BUT...
The added doc is a large single table. The top line is merged across
the entire table, and the top line loses it's center format. The
format is to the left.
When I view the attachment doc by itself everything is fine.
Any suggestions?