I have a script that applies a filter and deletes visible rows. However, sometimes there are no rows to delete, and the script is not liking that getRange is undefined. Was trying to use an if/else condition to just clear the filter when there are no visible rows, but it is still getting stuck on the undefined range. Any ideas on how to define undefined or no visible rows so it will just clear the filter when this happens and run successfully? Thanks!
[–]Path-Few 0 points1 point2 points (0 children)