Need help modifying the below code to add any new files imported to the bottom of my master sheet (Ariba Invoices). Currently when I import a new file it overwrites. I need it to find the last row on Ariba Invoices master sheet and add the new data.
Any help greatly appreciated.
Any help greatly appreciated.
Code:
Sub Button1_Click()
Dim OpenFileName As String
Dim wb As Workbook
'Select and Open workbook
OpenFileName = Application.GetOpenFilename("Ariba Invoices,*.csv")
If OpenFileName = "False" Then Exit Sub
Set wb = Workbooks.Open(OpenFileName)
'Get data EXAMPLE
ThisWorkbook.Sheets("Ariba Invoices").Range("A:T").Value = wb.Sheets(1).Range("A:T").Value
MsgBox ("Import Complete")
wb.Close
End Sub