I need help with my code. It starts with "A workbook" and then it adds "X workbook" and copies data from "A workbook" with the filtered data. Then it unfilters data from "A workbook" and adds another " Y workbook" and copy contents from "A workbook". Then back to "A workbook"
Workbooks.Add
Workbooks.Add
Windows("A Workbook").Activate
Cells.Select
Selection.SpecialCells(xlCellTypeVisible).Select
Selection.Copy
Windows("X Workbook").Activate
Application.CutCopyMode = False
ActiveSheet.PasteSpecial
Windows("A Workbook").Activate
Range("F1").Select
ActiveSheet.ShowAllData
Columns("A:O").Select
Selection.Copy
Windows("Y Workbook").Activate
Application.CutCopyMode = False
ActiveSheet.PasteSpecial
Windows("A Workbook").Activate