I try to remove with a script a conditional format for a specified range:
Code: Select all
Sub RemoveCF
oDoc = ThisComponent
oSheet = oDoc.CurrentController.ActiveSheet
oRange = oSheet.getCellRangeByName("A1:A3")
oCF = oRange.ConditionalFormat
msgbox oCF.Count & " CF detected before removing"
oCF.clear()
msgbox oCF.Count & " CF detected after removing"
End Sub
But the CF is still present.
If I inspect A1:A3 with MRI, this range is in its previous state.