LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I need a way to return the sheet names for all sheets in excell

how can I get all of the sheet names from excel using active x
0 Kudos
Message 1 of 18
(4,406 Views)
Use "Write Table To XL.vi" example that ships with LabVIEW as starting point.

From Application>>Workbook get hold of Worksheet object and iterate through it, reading its item names.

A Rafiq
0 Kudos
Message 2 of 18
(4,405 Views)
Actually you will need Application->Workbook->Sheets and iterate through it. The plural sheets is a collection of the sheet objects.

This is the equivalent VBA that you will need:

With ActiveWorkbook
For i = 1 To .Sheets.Count
strName(i) = .Sheets(i).Name
Next
End With

Michael Munroe
www.abcdef.biz
Michael Munroe, CLD, CTD, MCP
Automate 1M+ VI Search, Sort and Edit operations with Property Inspector 5.0, now with a new Interactive Window Manager!
Now supports full project automation using one-click custom macros or CLI.
0 Kudos
Message 3 of 18
(4,407 Views)

Hello,

LabView is a graphical langage ....

How can I write thze loop to find all sheets name in LabView ?

 

Many thanks for your help

 

0 Kudos
Message 4 of 18
(4,204 Views)

Hi,

In a VI read Excel I have I added a bit for pulling out the names of the Excel sheet names.

It's a bit messy but it works so you can use this part.

Message Edited by K C on 11-08-2006 12:53 PM

0 Kudos
Message 5 of 18
(4,201 Views)

please send the VI which can be used for LV 7.1

 

thanks in advance

karthik

0 Kudos
Message 6 of 18
(4,059 Views)

Hi,

Here it is. The merge errors VI is not available in 7.1

0 Kudos
Message 7 of 18
(4,047 Views)
Hi,

Could you attach this example in LV 7 Express please? I want to write the results of my database tables to the different sheets of the same Excel workbook.

Thanks in advance.
0 Kudos
Message 8 of 18
(3,990 Views)

Have you had a look at the Excel board. There are a lot of VI's on there that will help you when working with Excel.

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 9 of 18
(3,983 Views)
Mmmmm...
 
KC, i would like there were some explanation in the VI's you attached.
 
I'm new and I don't understand all the process
 
 
I almost forgot, sorry about my english, jsjsjsjsjsjsjs
0 Kudos
Message 10 of 18
(3,930 Views)