LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to open an excel document

Hi,
 
I am having some problems here with opening an excel worksheet. I have a macro in it that automatically runs upon opening and then closes excel. However, I cannot open the document through labWindows. I have tried using system, IO open and some people mentioned something about a program called ghostvision. Can someone point me in the right direction. Thanks a lot for the help.
 
Sebastian
0 Kudos
Message 1 of 4
(3,567 Views)
Hey Sebastian
 
Well you can use activeX to open/close excel........refer to the samples in your NI directory....
 
C:\.................\National Instruments\CVI70\samples\activex\excel
 
Hope it helps.....
 
k1_ke
0 Kudos
Message 2 of 4
(3,562 Views)

Hello Sebastian,

I think using the function OpenDocumentInDefaultViewer will be the easiest solution to your problem.

Message 3 of 4
(3,559 Views)

Hi,

Perfect!Smiley Happy OpenDoc was exactly what I needed.

Thanks for the help,

Sebastian

0 Kudos
Message 4 of 4
(3,546 Views)