rick051112
New Member
- Joined
- Aug 14, 2023
- Messages
- 3
- Office Version
- 2016
Hi, I am new to office scripts and just need help with filtering
Here is my code:
let ws = workbook.getActiveWorksheet()
ws.getAutoFilter().apply(ws.getAutoFilter().getRange(), 0, {filteron: ExcelScript.Filteron.values, values: ['Jello']})
I keep getting the error " autofilter apply: the argument is invalid or missing or has an incorrect format"
I want to filter the first column in the worksheet by the string "jello"
Thanks
Here is my code:
let ws = workbook.getActiveWorksheet()
ws.getAutoFilter().apply(ws.getAutoFilter().getRange(), 0, {filteron: ExcelScript.Filteron.values, values: ['Jello']})
I keep getting the error " autofilter apply: the argument is invalid or missing or has an incorrect format"
I want to filter the first column in the worksheet by the string "jello"
Thanks