LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Return data from a cell

Hi all,

 

I need an application that returns data from a cell (Excel). The input should be a number, then I should identify the cell of that number (in my case: cell B2) and return the contain of another cell (in my case : cell A2) . I tried with ActiveX to do that but I didn't succeed yet. If you can give some advices will be great.

 

Thanks!

0 Kudos
Message 1 of 6
(2,800 Views)

Hi,

Just use the vi's attached and the task can be accompolished using these.  wire the excel application refnum and you will get the data from the selected cell range.

With regards,
JK
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved.
Download All
Message 2 of 6
(2,798 Views)
Thanks a lot!
0 Kudos
Message 3 of 6
(2,789 Views)
i have attached the wrong vi's in my post.  just i have re-attached them.cheers:))
With regards,
JK
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved.
Download All
0 Kudos
Message 4 of 6
(2,786 Views)
So firstly it should search that value in worksheet ,locate the row and column and final should return the contain of the same row but the column -1 (column found in previous step) and return that cell on the same workshhet.I'll describe you the next sample: I'm looking for the number X, I found it in cell B2 and then I should return return the containing of cell A2 that is Y. So my input is X and my output is Y.
0 Kudos
Message 5 of 6
(2,780 Views)
That's a VI I sent to somebody on this forum : you will need to modify it (instead of reading 1 cell and converting it into DBL, you will need to read a cell array and converting it into DBL array, that will be the more difficult part of the job but you'll probably be able to find some examples. Then it will be easy to find the input value in the array and to find the output in that same array)
0 Kudos
Message 6 of 6
(2,775 Views)