Sub Conv_Files()
Dim strFolder As String
Dim strFile As String
Dim wb As Workbook
Application.DisplayAlerts = False
With Application.FileDialog(msoFileDialogFolderPicker)
.AllowMultiSelect = False
If .Show = -1 Then strFolder = .SelectedItems(1) Else Exit Sub
End With
strFile = Dir(strFolder & Application.PathSeparator & "*.csv")
If strFile <> "" Then
Do
Set wb = Workbooks.Open(strFile)
wb.SaveAs Left$(wb.Name, InStrRev(wb.Name, ".") - 1), FileFormat:=51
wb.Close
strFile = Dir
Loop Until strFile = ""
Else
MsgBox "No files found!"
End If
End Sub