Cant seem to get MCAutoRecalc to run in VB
Good morning all,
Im having trouble getting the following bit of code to run:
Public Sub Open_MathCAD()
Dim MathCAD As Object, Worksheets As Variant, Sheet As Variant
Set MathCAD = CreateObject("Mathcad.Application")
Set Worksheets = MathCAD.Worksheets
'THIS IS WHERE IT DOESNT WORK (I TRIED ALL OF THESE, TO NO AVAIL)
MathCAD.Options(mcAutoRecalc) = False
MathCAD.Options MCAutoRecalc = False
MathCAD.Options MCAutoRecalc = False
MathCAD.Options(MCAutoRecalc WorksheetOption) = False
End Sub
I am recieving a "Runtime Error 438 - Object doesnt support this property or method" prompt. I checked to make sure I had all the references loaded (mathcad.exe, automation.tlb, automationprivate.tlb). I did take out of this example a bit of code I used to open up an existing mathCAD file based on what the user chose with msoFileDialogFilePicker, but other than that everything's here.
All I wish to do is to turn off the automatic calculation for MathCAD. Is there something Im missing? Is my syntax right? Also, where can I find a good resource to manipulate MathCAD with VBA with code examples, other than the "Developers Reference"?

