global TABELA

Excel = actxserver('Excel.Application');
set(Excel, 'Visible', 1);
Workbooks = Excel.Workbooks;
% Workbook = invoke(Workbooks, 'Add');
fid=invoke(Workbooks,'Open','Dados.xls');
Sheets = Excel.ActiveWorkBook.Sheets;
sheet2 = get(Sheets, 'Item', 1);
invoke(sheet2, 'Activate');
Activesheet = Excel.Activesheet;
%DEFINIR O RANGE :
ActivesheetRange = get(Activesheet,'Range','A2','F18');
set(ActivesheetRange, 'Value', TABELA);
% invoke(Excel, 'Quit');

