LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read Specific worksheet in Excel File

Solved!
Go to solution

HI, i recently jus got the report generation toolkit and i would like to open my excel file

im jus trying here and there and searching in the Excel Thread but cant find much clues..

 

my purpose of doing this is to open my worksheet 2 in my excel file and display it out in a table

need some help

18265iF4FBD21AA6651A40

 

Download All
0 Kudos
Message 1 of 15
(6,262 Views)
Solution
Accepted by topic author 64864050

Here is something for you : I d'on't understand what's wrong because it seems to work with one of my own Excel files and it doesn't work with the one you attached (values are different) !

 

Can you please tell me wether or not it works on your PC ?

0 Kudos
Message 2 of 15
(6,251 Views)

You do know that Read from Spreadsheet File does not open Excel .xls files, don't you?

 

To work with Excel Files, you have to use ActiveX like krsone used in the attachments he posted.

0 Kudos
Message 3 of 15
(6,238 Views)

Use Excel Get Worksheet to specify worksheet.

Then use Excel Get Data to get data.

0 Kudos
Message 4 of 15
(6,224 Views)

its not working at all..

 

0 Kudos
Message 5 of 15
(6,213 Views)

i do not know, just learnt labview and trying to generate a report quickly, so was hoping that getting this toolkit can save me from using/learning activex

 

Smiley Tongue

 

0 Kudos
Message 6 of 15
(6,212 Views)

i got a small problem, from krsone examples, it is able to read from the range values indicated

but if i wan the read ALL the data, how am i gonna change it?

i've tried to remove the range and put ShowAllData, but it doesn't work

18329i4067C486BA059CCE

Download All
0 Kudos
Message 7 of 15
(6,202 Views)

Why would you use the "Show All Data" invoke node.  The Show All Data method according to VB help "Makes all rows of the currently filtered list visible."

 

And why would you take a worksheet reference and try to convert it to a 2-D array?

 

Are you trying to capture all possible data on the worksheet (256 columns by 65536 rows)?  That is a lot of data and I doubt any real spreadsheet of yours will be that full.  If so, you can make your range A:IV and that will be all rows of all 256 columns of data.

0 Kudos
Message 8 of 15
(6,197 Views)

my actual excel have about 16000 rows of data or even more, but i will not know the actual numbers of rows as it depends on my testing.

i already have a VI that create an excel file when the test complete.

so i want to open up and display it in LabView (this is only part of it as i need to open serveral more excel file and merge it into 1 excel file)

0 Kudos
Message 9 of 15
(6,191 Views)

after much thinking and looking through, i edited some and now it seems that its not working

theres this error message "type mismatch" and i don't get it

all i want is to open the selected excel file and the selected worksheet and display all data.

 

18335i8F7399665871FFD7

Download All
0 Kudos
Message 10 of 15
(6,178 Views)