Corel VBA. React in an Userform if an object is selcted in the document.

Hello Community,

ist there a way to react in a VBA-Userform if an object is selectd in the document.

I want to read a few field from Objectdata and show these in a textbox.

Thanks in advance!