LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to determine the size of the data in an excel worksheet using Actice X?

Solved!
Go to solution

What is the method or property to use to determine the data size of an excel worksheet using Active X?

 

Thanks.

 

Ian

0 Kudos
Message 1 of 7
(4,115 Views)

There is an Excel Get Last Row function.  Ctrl+Space in the block diagram to search for it.  Is that what you are looking for?

aputman
0 Kudos
Message 2 of 7
(4,106 Views)

Aputman,

 

Well, I need to know the numbers of the last row and the last column, and also I would like to read all the data of an excel worksheet dynamically from LabVIEW using ActiveX, assuming I do not always have Report Generation Toolkit.

 

Thanks.

 

Ian

0 Kudos
Message 3 of 7
(4,101 Views)

@TulaRen wrote:

.... assuming I do not always have Report Generation


Why would you not always have it, if you sometimes have it?  I'm not sure what that statement means.  Smiley Wink

 

If you do have it, the Excel Get Data VI will return an array of data for the entire worksheet, if the Start and End values are left unwired.  

 

If you don't actually have the RGT, I don't know what to tell you.  There has been another toolkit mentioned before but I don't remember the name.  The code for the RGT is not password protected so it's easy to open the block diagram and see how to do something.  However, in order to recreate that functionality, it would be a rather time-consuming endeavor, especially if you "don't always have Report Generation Toolkit."

 

 

aputman
0 Kudos
Message 4 of 7
(4,078 Views)
Solution
Accepted by topic author TulaRen

Actually, the "Excel_Calc_Bottom_RowNum" vi in RGT which gets the "Bottom Row Number" is pretty simple to understand (and modify)...

 

So now I do not always need RGTSmiley Very Happy

 

Many thanks for your help.

 

Ian

 

 

0 Kudos
Message 5 of 7
(4,068 Views)
Solution
Accepted by topic author TulaRen

For your future questions on the board, it is probably not a good idea to ask someone a question and then mark your restatement of their answer as the solution.  Just sayin.....Smiley Wink

aputman
0 Kudos
Message 6 of 7
(4,064 Views)

point takenSmiley LOL

0 Kudos
Message 7 of 7
(4,061 Views)