A1: =GetSearchCriteriaOption()&T(NOW())
doesn’t help.
Details:
Function GetSearchCriteriaOption() As Boolean
''' Calls: Tools.GetSearchCriteriaProperty()
Dim sNodePath$
sNodePath = "/org.openoffice.Office.Calc/Calculate/Other"
GlobalScope.BasicLibraries.LoadLibrary("Tools")
GetSearchCriteriaOption = GetRegistryKeyContent(sNodePath).getByName("SearchCriteria")
End Function
Unfortunately, I cannot change the option value without restarting the application (old bug). So I want to use that value, but it doesn’t update in cell A1 in the sheet when I change the option value manually.
I’ll add more. This option (“Search criteria = and <> must apply to whole cells”) affects the operation of the advanced filter, but does not affect other Calc functions. Very bad. And I want to make the advanced filter and functions work in a similar way, so I insert the substring “.*” before and after the criterion, if the option is not set (for functions).