Matlab export to excel borders format

5 vues (au cours des 30 derniers jours)
hock yam ooi
hock yam ooi le 8 Mai 2020
Réponse apportée : BhaTTa le 29 Nov 2024 à 3:55
Hi,
I try to export some data matlab to excel.
Needed some borders on specific range but fail with the coding below.
Here's my code:
Please help!
AppObj = actxserver('Excel.Application');
AppObj.Visible = true;
WkbkObj = AppObj.Workbooks.Open('Excel File.xlsx');%Please input your file.
WkbkObj.Range('B2:B4').Borders.Item('xlEdgeLeft').LineStyle = 1;
WkbkObj.Range('B2:B4').Borders.Item('xlEdgeLeft').Weight = -4138;

Réponses (1)

BhaTTa
BhaTTa le 29 Nov 2024 à 3:55

Community Treasure Hunt

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

Start Hunting!

Translated by