LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview, reference, excel

Screenshot (4).png

 

hello friends, another Problem is this one.
i dont know why but after i hit the run button he gives me this.
how can i fix this?

0 Kudos
Message 1 of 6
(3,106 Views)

Hi yzqamar,

 

you need to supply a valid Workbook reference…

 

Please stop informing me by PM for new messages, I already get notifications from the forum… 😞

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(3,100 Views)

Ok, im sorry,

how i do the valid reference?

0 Kudos
Message 3 of 6
(3,091 Views)

Hi yzqamar,

 

to learn how to handle Excel references you should play with them by writing a VBA macro within Excel!

 

You need to:

Open Excel
| open workbook
|  |  open worksheet
|  |  |  play with ranges
|  |  close worksheet
|  close workbook
close Excel
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(3,083 Views)

Screenshot (5).pngso now i did a macro with Excel and save it . what should i do next?

 

 

0 Kudos
Message 5 of 6
(3,072 Views)

Hi yzqamar,

 

you didn't get my point: by doing all this with "VBA for Excel" you learn, when to open any reference and how to close them. (The main advantage here is the easier debugging in VBA!)

Once you learned this you can implement the very same scheme using ActiveX in LabVIEW…

 

In my last message I sketched the steps you need to implement. All I see right now is the "close workbook" step…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 6
(3,067 Views)