Okay, this one has a lot of moving parts.
I have a macro enabled WB (Daily Ticket Report.xlsm) that has two blank worksheets. I export two reports from our ticket system and then manually select all/paste the data in one of those blank WS. The reports export to my Downloads folder (C:\Users\me\Downloads\) as a .xls file that looks like this report1564083050348.xls. The numbers always change, but "report" is always at the beginning of the file name.
I want a macro that will look in Downloads and open each report .xls WB, look in the header row and depending on what is in A1, copy all of the data into one of the blank WS in the "Daily Ticket Report.xlsm". Then I want it to close AND DELETE the file from Downloads.
If the .xls file has "Program" in A1 then all of the data will be copied and pasted into "LastComment" WS in the Daily Ticket Report.xlsm WB.
If the .xls file has "Number" in A1 then all of the data will be copied and pasted into "Tickets" WS in the Daily Ticket Report.xlsm WB.
Then I want both .xls files deleted.
Thanks for the help
Jason
I have a macro enabled WB (Daily Ticket Report.xlsm) that has two blank worksheets. I export two reports from our ticket system and then manually select all/paste the data in one of those blank WS. The reports export to my Downloads folder (C:\Users\me\Downloads\) as a .xls file that looks like this report1564083050348.xls. The numbers always change, but "report" is always at the beginning of the file name.
I want a macro that will look in Downloads and open each report .xls WB, look in the header row and depending on what is in A1, copy all of the data into one of the blank WS in the "Daily Ticket Report.xlsm". Then I want it to close AND DELETE the file from Downloads.
If the .xls file has "Program" in A1 then all of the data will be copied and pasted into "LastComment" WS in the Daily Ticket Report.xlsm WB.
If the .xls file has "Number" in A1 then all of the data will be copied and pasted into "Tickets" WS in the Daily Ticket Report.xlsm WB.
Then I want both .xls files deleted.
Thanks for the help
Jason