>Nick:
> I hate to bother you with this question, but I have not idea with where to find the correct syntax for the command you told me. I tried .workbook.saved=.t. and .workbook.saved(.t.) both were not working. Could you tell the correct syntax on that?? thanks
>sherry
Hi Sherry,
"workbook" in this context means any valid expression which evaluates to the workbook object. You can refer it for example as:
oExcel.ActiveWorkbook.Saved = .t.
or
oExcel.Workbooks(1).Saved = .t. && reference through Workbooks collection
or
oExcel.ActiveSheet.Parent.Saved = .t. && Excel sheet parent is a workbook
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison