Click to See Complete Forum and Search --> : document.Save method - return value ??


Jeff-Z
October 18th, 2001, 05:38 AM
Hi there,

i am writing an Office plugin and need to save any office document (if not saved) before using it for my plugin.

I am using the document.Save method, but if the user presses 'Cancel' instead of OK, a runtime error occurs.

I am planning on implementing a check on the return value of that Save call (i.e. like the DoModal() function on CFileDialog in VC++ returns IDCANCEL or IDOK), but I have not been able to find any documentation on how to do this (i'm primarily a c++ programmer, not vb) and what the return values can possibly be. I presume it's somewhat similar to the C++ calls/values but all my attempts failed so far.

Any info on this or links to office97/2000 development references in VB(A) would be appreciated a lot.

Thanks in advance,
Jeffrey