ComsolCom Version Control
It is possible to manually specify which ComsolCom version to run. To create a ComsolUtil and a ModelUtil object from a specific COMSOL version use the commands below:
Set ComsolUtil = CreateObject("comsolcom.comsolutil.<version>")
Set ModelUtil = CreateObject("comsolcom.modelutil.<version>")
where <version> is the COMSOL version number, for instance 6.4 for the current version.
Once you have set a COMSOL version to use, make sure LiveLink™ for Excel® is installed with this version number.
If you do not want to specify the version number and use the highest COMSOL version available, use the commands below:
Set ComsolUtil = CreateObject("comsolcom.comsolutil")
Set ModelUtil = CreateObject("comsolcom.modelutil")
Note: Make sure the corresponding ComsolCom references is set as static reference to be able to run the code, see Adding a Reference to the COMSOL API Component.