Wait a sec...that may not be it either.
The parameter will accept values of -1,-2, and 0. 0 *is* supposed to be WdDoNotSaveChanges .... hmmm......
>I think the value of wdDoNotSaveChanges should be -1
>
>
>>We use MS-WORD ole-automation to move information into word thru mail-merge. Our app works perfectly fine in WORD 97
>>
>>When it is used from WORD 97 the VFP code below:
>>
>># DEFINE wdDoNotSaveChanges 0
>>
>>** open a word mail-merge master document
>>oWord = GETOBJECT("MyWordDoc.doc")
>>
>>** follow a series of document mail-merge manipulations
>>
>>** master document closing
>>oWord.Close(wdDoNotSaveChanges)
>>
>>This triggers the following prompt:
>> 'Do you want to save changes made to "MyWordDoc.doc"'
>>A bug in my opinion... anyway out?
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05