Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
JERRY JERRY is offline
external usenet poster
 
Posts: 288
Default Losing MainDocumentType on Open()

Hey guys, I have a mail merge document that is set to Directory for the Main
Document Type. If I close it and manually reopen it, it stays as a
"Directory" document, but if I open it through automation (i.e.
oWord.Documents.Open("C:\SomeDirectory\SomeDirecto ryDocument.doc")) the
oWord.ActiveDocument.MailMerge.MainDocumentType = -1 as soon as you do the
Open() command and then it gets set to 0 once you call the OpenDataSource().

How can I open the document through automation and keep the document type
that the user originally saved it with?


Thanks for your help,

Jerry
 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
losing formating when open doc jen_writer Microsoft Word Help 3 August 20th 08 10:06 AM
Losing Format KenG Page Layout 1 May 9th 07 07:28 AM
Losing images in MS word [email protected] Microsoft Word Help 2 April 5th 07 02:29 PM
Losing my Clipboard annec Microsoft Word Help 1 October 6th 06 09:27 AM
Losing Formatting Jan Microsoft Word Help 2 February 5th 06 07:48 PM


All times are GMT +1. The time now is 05:45 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"