LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

select an MS Excel worksheet by name rather than by index

Solved!
Go to solution

Running LabVIEW 2010 on a Windows machine - I have code for working with Excel; saving a local copy of a workbook, and updating cells on a worksheet (see attached) - I don't remember, probably modified from some sample. Thing is this code accesses a worksheet by index, but my client is going to be adding sheets to the template, so the index may change. I am thinking that selecting a worksheet by name would be a more robust solution but I can't find a property for doing that.

anyone know if this is possible? maybe a sample someplace?

Thanks

lmd2

Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 1 of 3
(2,944 Views)
Solution
Accepted by topic author lmd2

Instead of passing in a number pass in a string to the To Variant function. That's it.

Message 2 of 3
(2,940 Views)

excellent - thank you

Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 3 of 3
(2,925 Views)