필터 지우기
필터 지우기

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

조회 수: 1 (최근 30일)
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개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by