LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Excel will not close in taskmanager

Hello,

I want save data into excel. I use LV7.0. I open the application, the workbook, the sheet...and close them in the opposite order. But excel wont close. I use the "hide excel"-status!
I´ve read some posts and try to find out my mistake - no chance.  Is there a tutorial anywhere, wich shows, how to work with activex (ecspacially excel) and what to do in wich order?
Here is a picture of my VI.

Thanks  for help

Christian
0 Kudos
Message 1 of 3
(3,153 Views)
Your code looks almost perfect. I would suggest that you close the first 3 Worksheet references that are currently feeding the Type input of the Variant to Data vi.  This input is typically an activeX contstant created by dropping a new Automation Refnum on the front panel, browsing to Excel.Worksheet and then hiding the control.  After the data has been written to the worksheet you can close the reference.
 
Also you might want to change the Worksheet.SaveAs to Workbook.SaveAs.
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
(3,145 Views)

This webpage discusses this --->  http://www.tushar-mehta.com/excel/vba/xl_doesnt_quit/

Even though it is about VBA, it should be translatable to LabVIEW.

Message 3 of 3
(3,132 Views)