LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

this is strange (write data into excel)

The aim of my program is to write into 3 sheets in excel like this: the first column is always the same and the second is what the user want to insert.
When I run the program for the first time and I press OK to write data into excel it works and It launch excel and ask to save . But When I press, after, OK for the second time to write, excel ask to save but I can't see data (the area is grey and no cell appear) and what is strange is that if I launch separately excel (after having pressed OK for second time) I can't see cells inside excel.
In fact if I want to write 3 or 4 times I need to stop my program and restart it each time..
labview 7.0
0 Kudos
Message 1 of 6
(2,990 Views)
I have printed the screen:
labview 7.0
0 Kudos
Message 2 of 6
(2,985 Views)
I forgot to say that even if it's grey , I can save data (without seeing data) and whaen I stop my program I can see cells.
labview 7.0
0 Kudos
Message 3 of 6
(2,985 Views)
Have you tried checking in the task manager that your Excel program is really being closed? If you're communicating via ActiveX, you need to be very careful about the order in which you close all of the object references. If one is left out or in the wrong order, Excel will "disappear", but it will remain in memory. This may cause a conflict which is causing your problem.

Just an idea

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 4 of 6
(2,970 Views)
Ok , I tried with only one sheet and in fact I forgot one automation close...
For 4 sheet, do I need one automation close for each 4 sheet?
labview 7.0
0 Kudos
Message 5 of 6
(2,968 Views)
Ok now it works, I put one automation close after each sheet and it's Ok
thanks
labview 7.0
0 Kudos
Message 6 of 6
(2,964 Views)