when you're done with it. However, if you've made changes to a document Excel will
ask you if >you want to save your changes. To avoid that you will want to set this
property of the Excel >object after it is instantiated:
m.loExcel.ActiveWorkbook.Saved=.T.
Basically this tells Excel the workbook has already been saved so no need to
prompt the user >when the application exits.
You could also use
#define false .f. && this statement at the beginning of the method
m.loExcel .displayalerts = false
and you will not be prompted with the "do I save?" message
>I strongly recommend the Hentzenwerke VFP Automation book and not just
because I count Tamar
>and Ted (and Whil!) among my VFP friends. (No offense to Della who I
do not believe I ever
>met.) Most of what I originally learned about COM automation came as a
result of using that
>book. There are enough good clear examples in it that it will save you
many hours of learning
>curve time.
Hear, hear!
I agree 100%. That's how I learned it too. BTW, all of their books are
superb!
Rafael Copquin
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.