Using xlswrite with Excel 2013
Mostrar comentarios más antiguos
I have a new Windows 8 laptop running MS Office 2013 and MATLAB R2013a.
The xlswrite function does not seem to work with this version of Excel®. A program developed at my school's computer lab using academic site-license MATLAB R2013 and MS Office 2010 under Win 7 worked fine in the development environment but shows fatal errors on this laptop when trying to write to an Excel 2013 spreadsheet. The program reads the names (strings) of purchasers and items, and weights (floating point numbers) of items out of an excel worksheet using xlsread, processes the data, and outputs processed data to an empty area of the worksheet. Our Excel files are in .xlsx format, not .xls.
The program fails with this error message:
Error using xlswrite (line 220)
Error registering event(s), Advise failed
Error in myprogram (line 164)
xlswrite(file, wt(n), worksheet, [alph({person{1} (3))} num2str(n)]);|
We are sure that the problem does not lie with the file and worksheet name nor the variable types, brackets or indices because the routine works perfectly under Win 7 and Excel 2010.
Besides outputting to a text file, is there any way to fix this?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Spreadsheets en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!