LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

extract excel data by cell name?

I'm developing a program to extract, process, and compile data from Excel spreadsheets. It works just fine when the cell ranges are explicitly defined (Open Excel > Open Book > Open Sheet > Read Number/String), however, I'd like to rewrite my code in order to read numbers/strings based on cell name (e.g. "Data1" instead of defining the worksheet number and cell range that comprises "Data1"). I think this should be possible without the special NI Excel Report Generation toolkit thing, but I'm not sure how to go about it. I'm using LV7.1.

Thanks for any assistance provided on this issue.
0 Kudos
Message 1 of 11
(5,134 Views)

Yes you can and actually you do it the same way but instead of putting A1,A1 you put in your name.

I have attached an example VI and xls file.

For more information and some sample VI's and tool kits, you can go to the excel board




Joe.
"NOTHING IS EVER EASY"
Download All
0 Kudos
Message 2 of 11
(5,129 Views)
After reading your post again I do not think that you will be able to do it without specifying a sheet.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 3 of 11
(5,128 Views)
Thanks very much for your help Jhoskins. However, the example code you provided is for LV 8.2.1, and I only have 7.1 at my disposal. Could you provide a snapshot of the block diagram?

Message Edited by drd525 on 07-09-2007 12:35 PM

0 Kudos
Message 4 of 11
(5,060 Views)
All that I really did was instead of putting something like A1:A1 I put in the name of the cell. You can use the example and do the same thing.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 5 of 11
(5,036 Views)
How does Excel know what cell name you specify in Labview corresponds to what cell in Excel?
0 Kudos
Message 6 of 11
(4,718 Views)

BME genuis wrote:
How does Excel know what cell name you specify in Labview corresponds to what cell in Excel?

 

I am not sure what you are asking. You have to set up name ranges in the Excel spreadsheet. you can look at the Excel help for that.

 

For more information and some sample VI's and tool kits, you can go to the excel board




Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 7 of 11
(4,713 Views)
How do you setup name ranges in the Excel spreadsheet.
0 Kudos
Message 8 of 11
(4,707 Views)

In the spreadsheet you will have to name your cells. You can have a look at the Excel help.

 

Excerpt from Excel help.

 

 

Message Edited by Joe_H on 05-28-2009 02:50 PM



Joe.
"NOTHING IS EVER EASY"
Message 9 of 11
(4,693 Views)

I'm trying to create a program in LabVIEW which must automatically populate an Excel file with different types of grandeurs.j 'reuçi have to do with laision labview excel in a file that was in the file c \ program over \ National Instruments \ comm com file is in exmpleexcel I clicked on disue is reuçi I have a table that was created by repmli labview but the problem is I want each hour repmli line Exmple: 06:30 is fulfilled the box in line 1 7:30 filled the box in row 2 ............ when it exceeds 8d fau hours a pose and it will encor continuier Comsa I have put the file that I ss entr1 of travaillier with (if you help me plaier)

0 Kudos
Message 10 of 11
(4,213 Views)