Set excel cell dimension.
11 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Tommaso
el 30 de Oct. de 2013
Comentada: Friedrich
el 31 de Oct. de 2013
Hi everybody, I need to know if it is possible, via matlab, to set excel cells dimensions (width and height) and if it is possible to turn on the option "text wrap".
Thanks
0 comentarios
Respuesta aceptada
Friedrich
el 30 de Oct. de 2013
Hi,
sure. Here you go:
ex = actxserver('excel.application');
ex.Workbooks.Add
ex.Visible = 1;
ex.Columns.Item('A:A').ColumnWidth = 30;
ex.Rows.Item('1:1').RowHeight = 60;
ex.Range('A1:A1').Select
ex.Selection.WrapText = true;
3 comentarios
Friedrich
el 31 de Oct. de 2013
Open Excel, Enable Macro recording and do what you like to do manually. Afterwards take a look at the generated VBA code. This shows what you need to do.
Más respuestas (0)
Ver también
Categorías
Más información sobre Data Import from MATLAB en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!