how can i apply a filter between two date on a column in a basic macro.
i have this snippet of code that work in ms excel, obviously it does not work the trick of option vbasupport 1 in calc
This code apply the filter between the two date on the column A in the row after a2 (where a2 is the column header)
Code: Select all
Range("A2").Select
Sheets(1).EnableAutoFilter = True
Sheets(1).Protect Contents:=True, userInterfaceOnly:=True
Selection.AutoFilter Field:=1, Criteria1:=">=" & Format("07/01/2014", "mm/dd/yyyy"), _
Operator:=xlAnd, Criteria2:="<=" & Format("14/01/2014", "mm/dd/yyyy")
How can i write something similar in OO Basic?
Thanks to all