I tried to use this, but nothing changes.
Code:
# Find the dimensions of the data max_row = ws.max_row max_column = ws.max_column # Define the range for sorting sorting_range = f"A1:{get_column_letter(max_column)}{max_row}" # Add sorting condition ws.auto_filter.add_sort_condition(sorting_range)
Statistics: Posted by valnurat — Sat Mar 02, 2024 12:43 am