MATLAB: Using matlabinit in Excel VBA

excelSpreadsheet Link

Hello. What's the correct syntax for using the matlabinit command in the an Excel VBA script to initialise the Spreadsheet Link EX? I've tried the following. The first one gives me a "Sub or Function not defined" error, while the second doesn't seem to do anything when executed.
sub mat() matlabinit end sub
sub mat() Run matlabinit end sub

Best Answer

Check this:
You just need to add a reference (by clicking a box) to be abl eto use the functions