79328578

Date: 2025-01-04 09:19:12
Score: 1
Natty:
Report link

You've not specified if there is just autofilter or excel tables which are filtered. So let's try to cover both cases

Sub Update()

  ' Open the source workbook
Set sourceWorkbook = Workbooks.Open(Filename:="D:\Desktop\Stop Work.xlsm")

with sourceWorkbook.Worksheets("Sheet1")

  .AutoFilterMode = False
  Dim lo As Long
  For lo = 1 To .ListObjects.Count
    .ListObjects(lo).ShowAutoFilter = False
  Next lo

  .Cells.Copy

end with

' Open the destination workbook
'....

BTW. The same question was crossposted at https://www.mrexcel.com/board/threads/add-a-rule-to-the-vba-to-remove-filters.1268355/

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Kaper