I am trying to add some code to my program that will lock all the external references for the active doc but I keep receiving an error stating "Expected function or variable".
I can get it to work if I comment out the SetSuccess variable and just use Modeldoc.LockAllExternalReferences, which is what I will probably do for now but I was hoping someone could tell me why this is not working correctly.
Dim SetSuccess As Boolean SetSuccess = Modeldoc.LockAllExternalReferences 'lock all external references