MATLAB: Append new rows in the middle of an excel file’s sheet

addappendexcelMATLABsheet

I am working on an excel file using actx function
then I want to add some rows in the middle of the sheet
is there a way to solve this ?
Captureaa.PNG

Best Answer

Probably the easiest way to find out the code you need to use is to record a macro in excel while you do the insertion and fix the formatting (which excel will inevitably mess up). The code you then use in matlab will be more or less identical to the VBA code generated by the macro (with adjustments for the difference in language syntax).