Macro Para Abrir Formulario Libreoffice Base - [top]

This only works when opening the database file directly from disk. It does not work when opening via the LibreOffice Start Center or recently used list (that's where macros win).

: En el panel de tareas o mediante el menú Insertar > Módulo , crea un nuevo módulo de macros. Este módulo contendrá tu código. macro para abrir formulario libreoffice base

' Open the form oFormulario = oDoc.FormDocuments.getByName("Clientes") ' Change form name oFormulario.open(oFrame) This only works when opening the database file

Call it with: AbrirFormularioConFiltro("frm_Detalles", "ID_Cliente", "25") for each button

Then, for each button, call:

Para abrir un formulario incrustado en tu base de datos, el método más directo y confiable utiliza la jerarquía FormDocuments . Copia y pega el siguiente código en tu editor de macros: