ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Quit Method and SaveChanges

Dear All,

How can i configure the ActiveX Quit Method to allow Save a Word Document without popup (asking if i want to Save the changes). In the Quit Method, there is a SaveChanges parameter, but i don't know how can i configure it to avoid the popup. The goal is to overwrite the document without asking anything. I've tried to create a constant, control, lots of things to configure the SaveChanges parameter, but fail.

Could you help me..

Thanks in advance,

Regards,

Hugo Neto
0 Kudos
Message 1 of 3
(2,821 Views)
You should be able to wire a constant TRUE into the SaveChanges parameter.

Your preferred solution is to save the document before quitting. This requires a reference to the open Workbook. Use the method Workbook.Save. This will overwrite the the original document which was opened and modified.
Michael Munroe, CLD, CTD, MCP
Automate 1M+ VI Search, Sort and Edit operations with Property Inspector 5.1, now with a new Interactive Window Manager!
Now supports full project automation using one-click custom macros or CLI.
0 Kudos
Message 2 of 3
(2,813 Views)
Hi Michael,

Fantastic... So easy!

Done...

Thank's a lot

Best Regards,

Hugo Neto
0 Kudos
Message 3 of 3
(2,805 Views)