Something like the following
Sub Latest()
Dim fso, ofileItem, oSource, stDirectory As String, stLatest As String, dtLatest As Date, stExt As String
stDirectory = "C:\users\temp\" ' Change folder path as necessary
Set fso = CreateObject("Scripting.FileSystemObject")
Set oSource = fso.GetFolder(stDirectory)
For Each ofileItem In oSource.Files
stExt = fso.getextensionname(ofileItem)
If stExt = "xlsx" Then
If FileDateTime(stDirectory & ofileItem.Name) > dtLatest Then
stLatest = ofileItem.Name
dtLatest = FileDateTime(stDirectory & ofileItem.Name)
End If
End If
Next ofileItem
Set fso = Nothing
Workbooks.Open FileName:=stDirectory & stLatest
' add code to copy the csv sheet
ActiveWorkBook.Close
;add code to paste to the relevant sheet in the current workbook
Bookmarks