This commit is contained in:
2023-02-10 15:30:46 +11:00
parent 2dda0e3f14
commit e4f832ebf2
2 changed files with 1 additions and 0 deletions

View File

@@ -179,6 +179,7 @@ func main() {
// cell is still a reference to the last cell in the header row // cell is still a reference to the last cell in the header row
filterRange := "A1:" + cell filterRange := "A1:" + cell
fmt.Printf("Setting autofilter to range '%s'\n", filterRange) fmt.Printf("Setting autofilter to range '%s'\n", filterRange)
// As per docs any filters applied need to be manually processed by us (eg hiding rows with blanks)
err = xlsx.AutoFilter(worksheetName, filterRange, nil) err = xlsx.AutoFilter(worksheetName, filterRange, nil)
if err != nil { if err != nil {
fmt.Printf("Error setting autofilter : '%s'\n", err) fmt.Printf("Error setting autofilter : '%s'\n", err)

Binary file not shown.