Yeah, you can do that. But the point I was trying to make, and it has been the source of confusion to those new to Automation, is that none of the Office (or another Automation capable program for that matter) products' constants and constants outside of those products.
You know that, I know that....but a whole lotta people don't :-)
>Unless you a constant file INCLUDEd in your program...
>
>>Hi Tom,
>>
>>Bear in mind that you can't call any functions via automation with Word constants. For example, you can't use:
>>
>>oWord.ActiveDocument.Close(wdSaveChanges)
>>
>>but you can use:
>>
>>oWord.ActiveDocument.Close(-1)
>>
>>>Where I get the MS word constants summary for use
>>>in VisualFoxPro?
------------------------------------------------
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