Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index


Il 06/12/2015 19:09, ARatti ha scritto:
Ho creato delle macro per visualizzare e nascondere dei fogli in calc, la macro che uso (da OOo) è la seguente:

sub NASCONDI
rem ----------------------------------------------------------------------
rem define variables
dim document   as object
dim dispatcher as object
rem ----------------------------------------------------------------------
rem get access to the document
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
rem ----------------------------------------------------------------------
dim args1(0) as new com.sun.star.beans.PropertyValue
args1(0).Name = "aTableName"
args1(0).Value = "FOLGIO1"
dispatcher.executeDispatch(document, ".uno:Hide", "", 0, args1())
end sub

Ma non funzione in modo corretto, più precisamente nasconde il foglio selezionato, e non il foglio indicato con args1(0).Value La stessa macro usata per mostra i foglio (al posto di ".uno:Hide" c'è ".uno:Show") funziona.
Qualche suggerimento
Grazie
Ambrogio Ratti

Scusate, uso
LibreOffice Versione: 5.0.2.2
OS Debian testing

Ambrogio

--
Come cancellarsi: E-mail users+unsubscribe@it.libreoffice.org
Problemi? http://it.libreoffice.org/supporto/mailing-lists/come-cancellarsi/
Linee guida per postare + altro: http://wiki.documentfoundation.org/Local_Mailing_Lists/it
Archivio della lista: http://listarchives.libreoffice.org/it/users/
Tutti i messaggi inviati a questa lista vengono archiviati pubblicamente e non sono eliminabili

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.