Trying to close a Basic routine using a module (I think supplied by @JohnSUN ) and I get an error. Can anyone please decipher the message?
Sub closeOOo
Dim oEnum
Dim oDoc
oEnum = StarDesktop.getComponents().createEnumeration()
Do While oEnum.hasMoreElements()
oDoc = oEnum.nextElement()
If HasUnoInterfaces(oDoc, "com.sun.star.util.XCloseable") Then
oDoc.setModified(False)
oDoc.close(True)
Else
oDoc.dispose()
End If
Loop
StarDesktop.Terminate()
End Sub
Message:
BASIC runtime error.
An exception occurred
Type: com.sun.star.util.CloseVetoException
Message: Controller disagree …