Save specific range of excel sheet as html page
2 views (last 30 days)
Show older comments
I am trying to save specific range of cells of an excel sheet as a html page. Until now, I am able to save the complete excel file. The output of the complete files contain sheets which I don't require. How can I save specific sheets as a html page?
excel = actxserver('Excel.Application');
xlsfile = 'C:\documents\data.xls';
file = excel.Workbooks.Open(xlsfile);
file.SaveAs('C:\documents\test.htm', 44);
%%Using the following doesn't help with "SaveAs"
% sheet1=excel.Worksheets.get('Item', 'Sheet1');
% range1=get(sheet1,'Range', 'B4:M15');
Any form of help will be appreciated. Thank you.
0 Comments
Answers (0)
See Also
Categories
Find more on Spreadsheets in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!