LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Excel: Creating Workbook fails

Hello,

 

I try to create a Excel-Workbook with Worksheet.

Creating the Excel-Application works, but then I get a failure when opening (or creating beacoause the name is empty) a workbook.

 

Does anybody know why?

 

Thanks

Gabriel

 

LabView 2009 Version 9; Office 20072011-06-28 19 32 26.png

0 Kudos
Message 1 of 6
(2,795 Views)

I am not sure but I think you need to convert the string path to variant data.

 

 

JM

Excel.jpg

0 Kudos
Message 2 of 6
(2,791 Views)

@J-M wrote:

I am not sure but I think you need to convert the string path to variant data.


That wouldn't make a difference. It gets automatically converted.

 

As for the question: You appear to have modified a shipping example. The Open New Workbook VI does not have a string input. Is this the VI that's causing the error? If so, what is the error code? Did you modify this? If you did modify it, how did you modify it? Did you save it under a new name? I hope you did not overwrite the shipping example.

0 Kudos
Message 3 of 6
(2,776 Views)

Yes, I am wrong.  Try "Open New  WorkBook.vi" instead "Open Specific WorkBook.vi" from the ExcelExamples.llb.

0 Kudos
Message 4 of 6
(2,769 Views)

The OP appears to be using 'Open Specific Workbook.vi' which has a string input, expected to be a path to an existing workbook.  'Open New Workbook.vi' appears to be in order here.  Both are located in the same llb.

 

Edit:  Just like J-M said...

0 Kudos
Message 5 of 6
(2,768 Views)

Hello,

 

Thanks for your answers. I realized that I have switched my LabView Version and was using an old ExcelExamples.llb. After chanching with a newer one it works.

 

Gabriel

0 Kudos
Message 6 of 6
(2,728 Views)