Creating a data import macro to Excel in Matlab using an activex link to Excel
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Greetings! I am having difficulties running an automated script that makes Excel import data from an external source using an activex connection from Matlab. Assuming Excel is my activex object, the following should (I think) add the data from my .dat document in cell A1
% Get a handle to the active sheet
Activesheet = Excel.Activesheet;
Excel.ActiveSheet.Connection.Add(Excel.Activesheet.get('Range', 'A1'), 'TEXT','C:\Users\isc.ISC1\Desktop\Matlab Programs\GTstrudl Output Postprocessing\WD-ULS-PUNCHING-JACKET-WEAK-LRFD.DAT')
The code gives me the error message: "No appropriate method, property, or field Activesheet for class handle.handle."
Any help is welcome!
Thanks in advance, Poul Reitzel
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Use COM Objects in MATLAB dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!