Probably because I use an event handler while moving focus to an other window, in this case, the help-window. Or is it the build-in event handler "Open Document" which I've pointed to the sub Start_Listener ?
"Message: BasicProviderImpl::getScript: no script!"
Does anyone know what I should change at this code to stop showing this error-window?
Code: Select all
Global oListener As Object
Global oListenerRange As Object
Sub Start_Listener 'This sub is started with the event "Document open"
oListenerRange=thisComponent.sheets.getByName("EC37 MIRA")
oListener = createUnoListener("test_","com.sun.star.util.XModifyListener")
oListenerRange.addModifyListener(oListener)
End Sub
Sub Stop_Listener
oListenerRange.removeModifyListener(oListener)
End Sub
Sub test_Disposing(oEvent)
End Sub
Sub test_Modified(oEvent)
mySub()
End Sub