LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I find the number of rows and columns for an excel sheet that I just opened

I am opening an existing excel file from LabWindows/CVI, I need to know how to find the number of rows and columns in that file. Any help is appreciated. Thanks
michael
0 Kudos
Message 1 of 2
(3,431 Views)
Hello,

The Excel Report instrument driver can be found in the following location.

C:\program files\national instruments\CVI71\toolslib\activex\excel\excelreport.fp

In this instrument there is a GetWorksheetAttribute function panel. It can be found under:

Excel Report>>Worksheet>>GetWorksheetAttribute

Using this function, you can access the ER_WS_ATTR_USED_RANGE and ER_WS_ATTR_USED_RANGE_LEN attributes. This will give you the information you need to determine what range of cells are used in the worksheet.

Scott Y
NI
0 Kudos
Message 2 of 2
(3,414 Views)