I am working on a tool to help my business order products. Right now, We have a tool that pulls all of the .csv files from our downloads folder and add them to one excel work book.
I am trying to make it pull one .xlsx file as well. I cannot figure out how to change my Macro code to include this one workbook in our tool. This is the macro that works for .csv files only atm.
Get Sheets - Pulls all downloaded reports into this workbook - Use only on Ordering_Tool Tab
Sheets("Ordering_Tool").Select
Path = "C:\Users\jenel\Downloads\"
Filename = Dir(Path & "*.csv")
Do While Filename <> ""
Workbooks.Open Filename:=Path & Filename, ReadOnly:=True
For Each Sheet In ActiveWorkbook.Sheets
Sheet.Copy After:=ThisWorkbook.Sheets(1)
Next Sheet
Workbooks(Filename).Close
Filename = Dir()
Loop
End Sub