How to know which dialog is now executing?

While some dialog was started by MyDialog.Execute, some macro started running. How can I know, inside the macro, which dialog is executing? LO 5.4.6.2, Windows 10. Thanks in advance.

Hello,

Your question is too vague and confusing. For one, are you stating you have multiple dialogs running? If a dialog is open as non-modal the macro could be from something completely separate from the dialog(s) which are open. Best to provide more information and perhaps an explanation of what you are trying to accomplish. Also, have you incorporated oEvent as this provides the source calling the macro.