jevi
Active Member
- Joined
- Apr 13, 2010
- Messages
- 339
- Office Version
- 2016
- Platform
- Windows
Hi All,
I registered this macro but I would like to Open automatically the file "Data File.xlsx" and not open it manually. But his macro it sounds need this file open and not closed in the folder.
Thank you,
I registered this macro but I would like to Open automatically the file "Data File.xlsx" and not open it manually. But his macro it sounds need this file open and not closed in the folder.
Thank you,
SQL:
' Macro8 Macro
'
'
Columns("A:E").Select
Selection.Copy
Windows("File1.xlsm").Activate
Columns("A:E").Select
ActiveSheet.Paste
Windows("Data File.xlsx").Activate
ActiveWindow.Close
Range("A1:E1").Select
Selection.AutoFilter
ActiveSheet.Range("$A$1:$E$100000").AutoFilter Field:=3, Criteria1:="DIR"
Columns("A:E").Select
Selection.Copy
Sheets("Imports").Select
Columns("A:E").Select
ActiveSheet.Paste
Sheets("PIVOT").Select
Range("B8").Select
Application.CutCopyMode = False
ActiveWorkbook.RefreshAll
Sheets("Database").Select
Range("A1").Select
Selection.AutoFilter
ActiveWorkbook.Save
End Sub