Hi
the example
How to call OPL from Excel ? in
Excel and OPL works fine
regards
------------------------------
[Alex] [Fleischer]
[EMEA CPLEX Optimization Technical Sales]
[IBM]
------------------------------
Original Message:
Sent: Wed December 01, 2021 10:04 AM
From: Beatriz Santos
Subject: Running CPLEX using excel vba
Hi,
I have an excel file that i would like to use as an interface to running a CPLEX problem. I have tried to use the shell function on vba so that i could run my cplex model but i doesn't seem to be working. I used the following code:
Public Sub callCPLEX()
MsgBox ("External call to OPL")
Dim strPath As String
strPath = "C:\ILOG\CPLEX_Studio1210\opl\bin\x64_win64\oplrun.exe C:\Diretorio MOADE\Trabalho_v2\Trabalho_v2.mod C:\Diretorio MOADE\Trabalho_v2\Trabalho_v2.dat"
Shell strPath
End Sub
But nothing happens, as CPLEX isn't opened and the mod file isn't runned.
Thank you!
------------------------------
Beatriz Santos
------------------------------