Is it possible to change registered Matlab version from Excel VBA

6 views (last 30 days)
I have 2 different matlab version installed on my machine. I am trying to connect to matlab from excel using VBA. However, Excel connects to wrong matlab version. I know that if i change the registered matlab version manually by following steps below excel connects to correct version.
1. Shut down all MATLAB and Excel sessions. 2. Open a Command Prompt window, and using cd, change to the bin\win64 or bin\win32 subfolder of the MATLAB installation folder. 3. Enter the command: .\matlab /regserver
However, I want excel to connect to matlab version which is running each time without manually changing registered matlab version. Is it possible or not ?
  1 Comment
Anup Khekare
Anup Khekare on 28 Feb 2017
Its too late now but the solution to this is at the following link
https://www.mathworks.com/matlabcentral/answers/49091-selecting-version-for-com-server

Sign in to comment.

Answers (0)

Categories

Find more on Data Export to MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!