Losing table first line center format

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?
 
S

Stephanie Krieger

Hi, David,

I need to ask a bit more info in order to help you:

- What is the formatting before the fact for the part of
the document that changes ... i.e., is the top line in
its own table or not in a table at all?, etc.

- What paragraph style directly precedes the section
break in the main document?

- Do any paragraph style names exist in both the main
document and the attachment document? If so, do any like-
named styles contain different formatting in the two
documents?

Best,
Stephanie Krieger
author of Microsoft Office Document Designer (from
Microsoft Press)
e-mail: MODD_2003 at msn dot com
blog: arouet.net
 
S

Stephanie Krieger

David,

This is the last chance I'll have to visit newsgroups
this week, so I won't see your responses to my post from
yesterday.

But, feel free to email your responses and I'll be happy
to help if I can.

Stephanie
 
D

David

Stephanie Krieger said:
Hi, David,

I need to ask a bit more info in order to help you:

- What is the formatting before the fact for the part of
the document that changes ... i.e., is the top line in
its own table or not in a table at all?, etc.

The top line of the attachment is the first row of the table. It is
used as the title. The style shown is Heading 1.
- What paragraph style directly precedes the section
break in the main document?

Block text
- Do any paragraph style names exist in both the main
document and the attachment document? If so, do any like-
named styles contain different formatting in the two
documents?

There is no 'block text' style in the attachment. Doc1 has the
following styles. Title, subtitle, a table with formfields, all set to
Normal, then the block text.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top