Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2005

Tip: Looking for answers? Try searching our database.

Column format Lost after InsertFile

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Patrick - 24 Mar 2005 23:17 GMT
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
Cindy M  -WordMVP- - 28 Mar 2005 16:45 GMT
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 :-)
Patrick - 29 Mar 2005 23:03 GMT
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

> Hi =?Utf-8?B?UGF0cmljaw==?=,
>
[quoted text clipped - 21 lines]
> This reply is posted in the Newsgroup; please post any follow question or
> reply in the newsgroup and not by e-mail :-)
Cindy M  -WordMVP- - 30 Mar 2005 11:07 GMT
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 :-)
Patrick - 30 Mar 2005 15:43 GMT
> Hi =?Utf-8?B?UGF0cmljaw==?=,
>
[quoted text clipped - 25 lines]
> 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
Cindy M  -WordMVP- - 30 Mar 2005 16:42 GMT
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 :-)
Patrick - 30 Mar 2005 17:11 GMT
Wonderful! It does work!
Thanks Cindy, Could you please tell me how to implement it in programm?
Patrick

> Hi =?Utf-8?B?UGF0cmljaw==?=,
>
[quoted text clipped - 22 lines]
> This reply is posted in the Newsgroup; please post any follow question or
> reply in the newsgroup and not by e-mail :-)
Cindy M  -WordMVP- - 31 Mar 2005 18:57 GMT
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
:-)
Patrick - 31 Mar 2005 19:33 GMT
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

> Hi =?Utf-8?B?UGF0cmljaw==?=,
>
[quoted text clipped - 17 lines]
> follow question or reply in the newsgroup and not by e-mail
> :-)

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.