Here is a simple example that uses the Microsoft ScriptControl to evaluate a JScript expression. This is a very indirect way to add 2 and 2.
Consuming Visual Basic 6 (VB6) and Visual Basic.NET COM-enabled DLLs.
Recent builds of Scriptom can be found here. Older versions are archived:
Scriptom uses late binding. Visual Basic and VBA uses early binding by default, but they also support late binding (with CreateObject). If you are translating working Visual Basic code and if your Scriptom code fails at the point where you've got your call