LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to create a excel file with one work-book


and Only one worksheet.
How can I do? I know we can use excel ActiveX in labVIEW.
But hen I create the excel file, it always
has 3 worksheet.
0 Kudos
Message 1 of 13
(4,641 Views)
The default for Excel is to have 3 sheets in a new workbook. You can change this in Tools>Options>General. If you want to programatically delete a sheet, use the Delete method.
0 Kudos
Message 2 of 13
(4,641 Views)
If I delete the worksheet, Excel will
prompt whether I make sure. I don't like the popup dalog box
0 Kudos
Message 4 of 13
(4,641 Views)
Use Excel.Application.DisplayAlerts = false

"bunny" wrote in message
news:506500000005000000BD220000-986697009000@quiq.com...
> If I delete the worksheet, Excel will
> prompt whether I make sure. I don't like the popup dalog box
0 Kudos
Message 13 of 13
(4,263 Views)
There's an activeX call in a property node called SheetsInNewWorkbook, set this to one and it's done. But don't forget to set it to default value at the end, if you want Excel to create workbooks with that number of sheets, the change is "forever". If you have problems, I can send you an example.
Message 3 of 13
(4,641 Views)
Thank you. Please sent me your example.
It is urgent for me.
0 Kudos
Message 5 of 13
(4,641 Views)
I can't find the prooerty node you mentioned.
Could you give me a example?
0 Kudos
Message 6 of 13
(4,641 Views)
I am looking forward to seeing your example.
You can email to zhichao_chen@Yahoo.com
0 Kudos
Message 7 of 13
(4,641 Views)
I've posted the example but the mail was returned, you could take the example from this page (posted already) or provide me a valid e-mail address.
0 Kudos
Message 9 of 13
(4,641 Views)
Here's the example, it simply makes Excel visible and creates a workbook with one worksheet. It's made with LabVIEW 5.0.1f1 and Excel 97, for further versions of Excel, or earlyer ones, the property nodes may change, so check them. And of course, you can continue wiring more and more property and invoke nodes to do anything you could do with Excel. Good luck and hope this helps, if need more help, just write.
Message 8 of 13
(4,641 Views)