Hi Patric,
I'm using basic macros with LibreOffice 5.4.2.2. 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, "com.sun.star.sheet.XSpreadsheetDocument") Then MsgBox "Spreadsheet" EndIf 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 "OpenOffice.org Macros Explained" book http://www.pitonyak.org/book/ Regards Oliver _______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice