Creating a data import macro to Excel in Matlab using an activex link to Excel

1 visualización (últimos 30 días)
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

Respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by