Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Newsgroup Archive
Word Newsgroups
Word VBA
Formatting with InsertFile
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Jay Freedman, post: 5871958"] After each file, instead of an ordinary page break, you need a next-page section break in order to separate the two-column layout from the following one-column layout. That is, change Word.WdBreakType.wdPageBreak to Word.WdBreakType.wdSectionBreakNextPage You may also have a problem with _where_ the break is being inserted. You can't rely on the Selection being at the right place after the file insertion. If the code puts the section break in the wrong place, precede the InsertBreak statement with oFinalSelection.EndKey(Word.WdUnits.wdStory, Word.WdMovementType.wdMove) -- Regards, Jay Freedman Microsoft Word MVP Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. [/QUOTE]
Verification
Post reply
Forums
Archive
Newsgroup Archive
Word Newsgroups
Word VBA
Formatting with InsertFile
Top