deutsches Forum rund um Apache OpenOffice und LibreOffice
Zum Inhalt
von schane65 » Di, 08.12.2009 22:50
von schane65 » Fr, 04.12.2009 22:13
von Karolus » Fr, 04.12.2009 21:47
von schane65 » Fr, 04.12.2009 21:31
von schane65 » Fr, 04.12.2009 19:40
von Karolus » Fr, 04.12.2009 16:18
von schane65 » Fr, 04.12.2009 16:07
von Karolus » Fr, 04.12.2009 15:28
Ironiemodus hat geschrieben:Dann vielen Dank Andreas, für die konstruktive Unterstützung seit 13 Uhr 30, zur Lösung deines Problems
von schane65 » Fr, 04.12.2009 14:47
von Karolus » Fr, 04.12.2009 14:45
dispatcher.executeDispatch(document, ".uno:Protect", "ah01", 0, args45())
von schane65 » Fr, 04.12.2009 14:23
von Karolus » Fr, 04.12.2009 14:01
Dein Makro funktioniert auch nicht, weil bzgl. des "o" vor "sheet" etwas nicht stimmt
von schane65 » Fr, 04.12.2009 13:34
von Karolus » Do, 03.12.2009 23:07
Code: Alles auswählen
sub bereiche_schuetzen osheet = thisComponent.sheets().getbyname("ah01") oSheet.unprotect("") 'Dort könnte ein Passwort stehen aranges() = array("E3","Q2","D5:AH5","C9:AI38","B42","B44","E41:AD49","AI42","AI46","AK15:AT22"_ ,"AN26","AT10","BD10","AU15:BD18","AW19:AX22","AY22:BD22","AU23","AY23","AT27","AK32:BD39","AK41","C9") Dim myProtection As New com.sun.star.util.CellProtection myProtection.IsLocked=true myProtection.isHidden = 0 myProtection.IsPrintHidden = 0 myProtection.IsFormulaHidden = 0 for i = 0 to ubound(aranges()) osheet.getCellRangebyName( aranges( i )).cellprotection = myProtection next oSheet.protect("")'Dort müsste das Passwort auch stehen end sub
von schane65 » Do, 03.12.2009 16:11
Nach oben