Matlab removes excel formulas when writing(saving) files?

2 views (last 30 days)
MKM
MKM on 1 Dec 2021
Commented: VBBV on 24 Dec 2024 at 4:15
[file,path] = uiputfile('*.xlsx');
filename = fullfile(path,file);
writetable(app.newdata,filename);
The code i am using is found above. The original xlsx file contains formulas for certain rows and when i modify the file and resave it, matlab removes all the forumlas in the xlsx file.
Is there an input argument that i can put? i cant seem to see it in the documentations.
Cheers.
  1 Comment
VBBV
VBBV on 24 Dec 2024 at 4:15
@MKM, use WriteMode property to write /modify the excel file
writetable(app.newdata,filename,'WriteMode','append','Sheet','NewSheet'); % use the write mode property

Sign in to comment.

Answers (1)

Yusuf Suer Erdem
Yusuf Suer Erdem on 1 Dec 2021
Could you try to implement this code below to your system?
[numbers, strings, raw] = xlsread('*.xlsx');

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!