I’m attempting to close a dialog named oDlg with the code below. oDlg is defined as a public object variable as I’m attempting to close a dialog that is created by another sub. I have tried killdlg as both private and public which makes no difference. Not sure what I’m doing wrong. I appreciate any input. Obviously, I"m a LO basic noob.
Thanks in advance.
Sub Close_dialog
killdlg= createUnoService("com.sun.star.awt.XDialog")
oDlg.killdlg.endexecute()
End Sub