Re: 2 Excel questions using automation from VFP9SP2

Author: Fernando D. Bozzo

Posted: 2018-09-05 at 17:23:30

Hi:

About (1), y thinq you could use the same value that makes Word quit

without saving, which is *Quit(0)* (can't find any doc about Quit)

Another option is closing de document without saving using *Close(0)*

method then quitting.

https://docs.microsoft.com/en-gb/visualstudio/vsto/how-to-programmatically-close-documents?view=vs-2017

Hope it helps.

Fernando D. Bozzo

2018-09-05 22:47 GMT+02:00 <mbsoftwaresolutions@mbsoftwaresolutions.com>:

> See screenshot for case matter: https://www.screencast.com/t/VNdRiSd1D

>

> 1) (rose highlight) I've forgotten how to get Excel to close without

> asking me this every time. Currently, I'm just calling the .Quit() method

> of my Excel object. I tried passing a .T. parm but that failed.

>

> 2) (yellow highlight) Anybody know how to get this slick NETWORKDAYS

> formula to work in VFP? Would be neat to have this and I thought perhaps

> someone already built it.

>

> tia,

> --Mike

>

>

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

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/CAGQ_JumoPZvcsBS_J09kc2AqPU5taRxAnHiCjNG5GE7mpZactA@mail.gmail.com

** 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.

©2018 Fernando D. Bozzo