How to check Uno objects types with Basic macro ?

Oliver Brinzing Oliver.Brinzing at
Thu Dec 21 17:41:26 UTC 2017

Hi Patric,

> I'm using basic macros with LibreOffice I would like to check that > a basic Object is a document Section. I find out  XTypeProvider interface
you can use something like this:

Sub Main
	If hasUnoInterfaces(ThisComponent, "") Then
		MsgBox "Spreadsheet"
End Sub

 > By the way, do you know a good book/PDF to download about UNO interface
 > and/or IDL language ?

have a look at Andrew Pitonyak's " Macros Explained" book


More information about the LibreOffice mailing list