When I run the following code
function feff
filename = 'UHL DEA.xlsx';
FI = xlsread(filename,'AU9:AU179');
FO = xlsread(filename,'AW9:AW179');
FEff = FI./FO;
%Write the efficiency back to the appropriate file in excel
xlswrite(filename,FEff,'BC9:BC179');
I get the error
Error using xlswrite (line 220)
Excel returned: Error: Object returned error code: 0x800A03EC.
Error in feff (line 15)
xlswrite(filename,FEff,'BC9:BC179');
But it works fine if i write into another file as follows
function feff
filename = 'UHL DEA.xlsx';
FI = xlsread(filename,'AU9:AU179');
FO = xlsread(filename,'AW9:AW179');
FEff = FI./FO;
%Write the efficiency back to the appropriate file in excel
xlswrite('DEA.xlsx',FEff,'BC9:BC179');
The UHL DEA.xlsx contains other data in the previous columns and I need to write this data again in the same file. Pointers will be appreciated. Thanks