Code: Select all
XLS.Sheet[0].Autofilters.Add(0, 4, 3, 4);
In my existing Code, I can Create fixed header rows with to following code:
Code: Select all
sheet.Pane.SplitColX := 0;
sheet.Pane.SplitRowY := FHeaderRows;
sheet.Pane.TopRow := FHeaderRows;
sheet.Pane.PaneType := ptFrozen;
sheet.Pane.ActivePane := 0;
sheet.Options := sheet.Options + [soFrozenPanes];