LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I close or stop an Excel process

Hi,
I have an LV application which transfers data to and from an EXcel-Workbook.
My problem is that after closing the Workbook and quitting the Excel-application the actual process (can be seen in the taskmanager) is still present. It goes away only when the LV-application ends.
There is no problem as long as I don't activate any specific worksheet. But I have to do this to access the correct data.
 
Has someone an idea what's going on?
 
Thank you
RU
0 Kudos
Message 1 of 6
(12,124 Views)

Use the attached VI to kill (close) Excel once you have proramatically closed it.

Give the command excel.exe in the Taskname field in the VI.

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 2 of 6
(12,120 Views)

Thank you,

it works (as you knew already)!

And here is my next question:

I use this systemexe.vi for a synchronisation process and it is rather annoying that it opens the DOS like window each time it is called.

Is there perhaps a possibility to make the window invisible?

RU

 

0 Kudos
Message 3 of 6
(12,115 Views)

Have you looked at setting the Run Minimized to True?



Message Edited by JoeLabView on 06-19-2008 07:47 AM
0 Kudos
Message 4 of 6
(12,111 Views)

Thank you,

it had helped, if I had at least as much eyes open as Dilbert, when I looked at the VI.

RU

0 Kudos
Message 5 of 6
(12,104 Views)
LOL!!
 
...  and I thought I didn't see well...  😄 😄
 
Glad it helped!
 
RayR
 
0 Kudos
Message 6 of 6
(12,100 Views)