Hello
I try when save the file as xlsx should be filter by delete any row contains zero for column D,E together I put the expected result in second file how should be after export the file.
Sub EXPORT_REPORT()
Dim wsData As Worksheet, StrPath As String
Dim OUTrng As Range
Application.DisplayAlerts = False
'For Each ws In ThisWorkbook.Worksheets
StrPath = ActiveWorkbook.Path & "\"
Set wsData = ActiveSheet.Cells(1).CurrentRegion.Clear
With ThisWorkbook
Set OUTrng = .ActiveSheet.Range("A1").CurrentRegion
With OUTrng
.AutoFilter 4, ""
.AutoFilter 5, ""
Application.DisplayAlerts = False
.Offset(1).SpecialCells(xlCellTypeVisible).Delete
Application.DisplayAlerts = True
.AutoFilter
End With
End With
x = ActiveSheet.Cells(Rows.Count, 1).End(xlUp).Row
ActiveSheet.Range("a2:a" & x) = Evaluate("row(1:" & x & ")")
ActiveSheet.Copy
ActiveWorkbook.SaveAs Filename:= _
StrPath & " REPORT " & Format(Application.WorksheetFunction.EoMonth(Date - 10, 0), "MM - YYYY") & ".xlsx", FileFormat:=51
ActiveWorkbook.Close
Application.DisplayAlerts = True
End Sub