Column format Lost after InsertFile

P

Patrick

Hi, All,
I have an urgent question. I defined two Columns for the first paragraph of
A2.DOC,
I opened A1.DOC, after doing: .selection.insertfile('A2.DOC'), the A2.DOC
inserted, however the column definition lost!
Can any body help me?
Thanks
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?UGF0cmljaw==?=,
I have an urgent question. I defined two Columns for the first paragraph of
A2.DOC,
I opened A1.DOC, after doing: .selection.insertfile('A2.DOC'), the A2.DOC
inserted, however the column definition lost!
When you insert a document into another document, the last paragarph mark is
"cut off". This last paragraph contains all the information on section
formatting, including settins for newspaper columns. You'd need to insert a
(continuous) section break immediately before the last paragraph mark, then
it should be retained when you use Insert/File.

Note: If you'd posted this to an appropriate end-user group, such as
word.pagelayout or word.docmanagement, you'd probably have already gotten a
reply. Since your question doesn't deal with VBA (programming), it's off-topic
here...

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
P

Patrick

Hi, Cindy,
Thanks for your response. I tried your solution but it doesn't work. My
purpose is insert the new document from a new page. So I used the
insertBreak(7)(wdpageBreak), I am not sure where i can put the insertBreak(3)
(wdSectionContinue)
Thanks a lot
Patrick
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?UGF0cmljaw==?=,
I tried your solution but it doesn't work. My
purpose is insert the new document from a new page. So I used the
insertBreak(7)(wdpageBreak), I am not sure where i can put the insertBreak(3)
(wdSectionContinue)
OK, try this first in the UI, just to make sure it's going to give you the
result you expect:

1. Open the document you want to insert

2. Move to the bottom of the document (Ctrl+End)

3. Insert/Break and select "Continuos" from the list of section breaks.

4. Save and close

5. Open the target document

6. Insert the first document into it

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 
P

Patrick

Cindy M -WordMVP- said:
Hi =?Utf-8?B?UGF0cmljaw==?=,

OK, try this first in the UI, just to make sure it's going to give you the
result you expect:

1. Open the document you want to insert

2. Move to the bottom of the document (Ctrl+End)

3. Insert/Break and select "Continuos" from the list of section breaks.

4. Save and close

5. Open the target document

6. Insert the first document into it

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)


This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)

Hi, Cindy,
Thanks again. However, the result isn't my expect. In fact, I have hundred
and some formated (using same template) DOC files, I want to combine them
into a single file in program. I would like open one file first and insert
the others after it without open all files one by one. The files' first
paragraph has two columns but one column in the second paragraph. I tried
your solution. It doesn't work when insterting the file after the first file.
Thanks
Patrick
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?UGF0cmljaw==?=,
However, the result isn't my expect. In fact, I have hundred
and some formated (using same template) DOC files, I want to combine them
into a single file in program. I would like open one file first and insert
the others after it without open all files one by one.
In this case, again manually, first, to see if it does what you need:

1. Go into the Outline view.

2. Make sure the Master Document toolbar is displayed; if it's not, it's a
tool on the Outline toolbar

3. Use the Master Document toolbar to insert each file, one after the other,
as sub-documents.

Test it on a couple - does it give you acceptable results?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
P

Patrick

Wonderful! It does work!
Thanks Cindy, Could you please tell me how to implement it in programm?
Patrick
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?UGF0cmljaw==?=,
Could you please tell me how to implement it in programm?
Best way to get started is to perform the actions while
running the Macro recorder. If your needs are very simple,
you can simply use the result. Otherwise, you need to edit
it.

In the latter case, post the recorded procedure and explain
what it doesn't do that you still need.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 
P

Patrick

Hi, Cindy,
Thanks again.
Your solution is good. I just want to know how to implement it in VBA,
because my current software is Visaul basic. Can you tell me which methods or
properties can be used for in programming?
Patrick
 

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