Dear All,
i’m programming a commercial software in matlab environment. The link between this software and matlab is EXCEL. The software can be navigated through Excel therefore all I’m trying to do is creating a dynamic data exchange between Matlab and Excel active (running) worksheet and run the excelmacro of the other commercial software. If I run this macro directly from excel (MenuRunAnalysis) it causes no trouble however if I run it via matlab I get the message:
’No RETURN() or HALT() function found on macro sheet.”
I checked the message and found that it was a bug of previous Excel versions like Excel2000. Originally I used 2003 with SP3 but upgraded to 2007 SP2 to avoid this message, without any effect. Actually the code works fine it does all I need but after every single iteration I get this warning so the matlab code cannot do a whole loop because I always have to intervene and clilck OK.
The VBA code I’m using is:
I’m having this problem for several weeks now and running out of ideas. I would really appreciate if someone could help me to come over this obstacle.Please Login or Register to view this content.
Bookmarks