Hallo,
Ich suche das Basic-Kommando für [Protection] -> [Hide Formula].
Basic command Protection.FormulasHidden
Moderator: Moderatoren
Basic command Protection.FormulasHidden
Zuletzt geändert von Tadeus. am So, 09.06.2019 15:54, insgesamt 1-mal geändert.
Re: Basic command Protection.FormulasHidden
Wie bei VBA (MS Excel) auch gibt es dafür keinen Basic-Befehl, sondern es handelt sich um eine Eigenschaft der Zelle, im Falle von OpenOffice um ein sog. Struct:
http://www.openoffice.org/api/docs/comm ... ction.html
Verwendung z.B.:
Gruß
Stephan
http://www.openoffice.org/api/docs/comm ... ction.html
Verwendung z.B.:
Code: Alles auswählen
Sub Main
cell = ThisComponent.Sheets.getByName("Tabelle1").getCellRangeByName("A1")
cp = cell.CellProtection
cp.IsFormulaHidden = True
'cp.IsHidden = True
cell.CellProtection = cp
End Sub
Gruß
Stephan