XLSWRITE

How can I prompt the user to give a new filename so that when I want to use XLSwrite it can use that specified filename?
Appreicate the help!

 Risposta accettata

Oleg Komarov
Oleg Komarov il 22 Mar 2012

0 voti

name = inputdlg('Name excel file as: ','Name excel',1);

Più risposte (2)

Wayne King
Wayne King il 22 Mar 2012

0 voti

filename = input('Enter the file name:\n','s');
Geoff
Geoff il 22 Mar 2012

0 voti

If you prefer a GUI interface, do this:
[filename, pathname] = uiputfile( ...
{'*.xls','Excel spreadsheet (*.xls)'; '*.*', 'All files (*.*)'}, ...
'Save spreadsheet as' );

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by