>>>IF oOutlook.Application.ActiveExplorer.WindowState = olMinimized<<
>I think olMinimized is a VB variable, will it be available to VFP?
>
To make the variable value available to VFP, use #DEFINE olMinimized 1 ,either in your .prg or you can reference a header file in a class.
BTW, you can use the Object Browser in VFP7 to easily inspect the constant values in the referenced object model.
>>>.SendKeys("%T")
>.SendKeys("E")<<
>I guess the first line activates the 'Tools' menu, but what does the second line do? I cannot see any menu bar which has and 'E' option (not in Office XP, anyway).
Sorry about that, I'm using Outlook 2000 on this machine and don't know what the menu structure is for Outlook XP as I'm not able to get to my other machine that has it loaded right now. The menu option in 2000 is Send/Receive, and I don't know what it is in XP.
Kendall Webb
Senior Software Engineer
MCAD.Net/MCSD.Net