LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FInd selected cells in Excel

I need to find the range of cells that I slect (by highghting using left mouse drag) on an excel worsheet I opened using Labview. I use ActiveX to open the excel file but struggling to get the sected range using ActiveX. WHat I really need to get the cell address of the selcted range for ex. "C2:E5". Appreciate if anyone can give me any tips.

0 Kudos
Message 1 of 4
(2,902 Views)

You need to register an Event Callback for the Selection Change event of the Excel._Worksheet object and create a callback vi to pass the reference of the string indicator where you want the range to be displayed. Attached is an example of that.

 

Ben64

Download All
Message 2 of 4
(2,858 Views)

Dear Ben64,

 

Thank you very much for the reply. Unofrtunately I haven't got the LabVEIW v17 yet and running V15. If possible can you plese post the examples in V15.

Thanks again.

0 Kudos
Message 3 of 4
(2,835 Views)

Version LV2015 attached.

 

Ben64

Download All
Message 4 of 4
(2,829 Views)