Hi,
I currently have a workbook with multiple sheets that have a macro running to set a filter based on specific criteria from the main sheet. I would like to be able to have all items that are not a part of the filter (hidden) be deleted from the supporting sheets in an effort to reduce the size of the file. Here is the VBA code that I am presently running to set the filters. How can this code be modified to delete the non essential rows from the secondary tabs?
The current code is:
Sub Update()
'
' Update Macro
'
' Keyboard Shortcut: Ctrl+Shift+U
'
Sheets("AR 105 0000 Sub Account ").Select
Application.CutCopyMode = False
Application.CutCopyMode = False
Range("A5:AN10000").AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:= _
Range("A3:AN4"), Unique:=False
Sheets(" TOTAL 6200 Sub Account ").Select
Application.CutCopyMode = False
Application.CutCopyMode = False
Range("A5:T163").AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:= _
Range("A3:T4"), Unique:=False
Sheets("AP 204 0000 Sub Account").Select
Application.CutCopyMode = False
Application.CutCopyMode = False
Range("A5:AF10000").AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:= _
Range("A3:AF4"), Unique:=False
Sheets("AP 204 6125 Sub Account").Select
Application.CutCopyMode = False
Application.CutCopyMode = False
Range("A5:V184").AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:= _
Range("A3:U4"), Unique:=False
Sheets("SUMMARY").Select
Range("D3").Select
ActiveCell.FormulaR1C1 = "UPDATE COMPLETED"
Range("B13").Select
End Sub
Thank you in advance!
I currently have a workbook with multiple sheets that have a macro running to set a filter based on specific criteria from the main sheet. I would like to be able to have all items that are not a part of the filter (hidden) be deleted from the supporting sheets in an effort to reduce the size of the file. Here is the VBA code that I am presently running to set the filters. How can this code be modified to delete the non essential rows from the secondary tabs?
The current code is:
Sub Update()
'
' Update Macro
'
' Keyboard Shortcut: Ctrl+Shift+U
'
Sheets("AR 105 0000 Sub Account ").Select
Application.CutCopyMode = False
Application.CutCopyMode = False
Range("A5:AN10000").AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:= _
Range("A3:AN4"), Unique:=False
Sheets(" TOTAL 6200 Sub Account ").Select
Application.CutCopyMode = False
Application.CutCopyMode = False
Range("A5:T163").AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:= _
Range("A3:T4"), Unique:=False
Sheets("AP 204 0000 Sub Account").Select
Application.CutCopyMode = False
Application.CutCopyMode = False
Range("A5:AF10000").AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:= _
Range("A3:AF4"), Unique:=False
Sheets("AP 204 6125 Sub Account").Select
Application.CutCopyMode = False
Application.CutCopyMode = False
Range("A5:V184").AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:= _
Range("A3:U4"), Unique:=False
Sheets("SUMMARY").Select
Range("D3").Select
ActiveCell.FormulaR1C1 = "UPDATE COMPLETED"
Range("B13").Select
End Sub
Thank you in advance!