Mathcad Variable with Subscripts + Excel VBA Problem
Hi,
I have a very simple VBA script running in excel, which pulls values from Mathcad 14. I've run into a problem when the variable name has a subscript. VBA returns an error saying it can't find the variable.
I have tried "Test.2" for Test subscript 2, and the VBA function Chr$() to pass the Unicode of a subscript. Neither has worked for me.
Anyone have any suggestions? Does anyone know how to pull ALL of the variables names from Mathcad with VBA? That might help too.
Thanks,
Patrick
Sub Simpletest()
Dim a, b 'test varibles
Dim TestNumber
Dim oMCapp As Object
Dim oMWorkSheet As Object
Set oMCapp = GetObject(, "Mathcad.Application")
Set oMWorkSheet = oMCapp.activeworksheet
TestNumber = oMWorkSheet.getvalue("TestNumber"))
End Sub

