Hi Team,
In our PowerBuilder Application, we use the below code to remove the protection from the specified document.
oleObjectVar.Object.Application.ActiveDocument.Unprotect('Hard-coded password')
when the script try to execute the oleObjectVar.Object.Application.ActiveDocument line we are getting the 'Error accessing externa object property error'
How to check the this oleObjectVar.Object.Application.ActiveDocument is valid or not to avoid the error.