I am using a program called mathtype to pull some equation objects from a text document. I wrote code in VBA that works fine with their API, but I have to translate it into a VBScript file. I went through all of Google, but did not find a solution on how (if possible) to call the VBA library from VBScript.
VBScript cannot see MathTypeSDK objects / functions.
If this is not possible, how can I enclose a macro that I need to run in a globally accessible word file and call it from VBScript?
Edit: succeeded! Unfortunately, the approaches below, although useful, did not help me in my situation. I found something closer: embedding a macro in a global file and calling it through the command to run Word objects. objWord.Run "Normal.NewMacros.RunMain"
Durkd source
share