Im trying to open a csv file in my vba code but after opening the file it comes up with an error "Cant execute in break mode"
Sub extern_rd_grab()
Dim file_name2
Dim wb As Workbook
Dim sheet_name As String
Dim sCSVFullName As String
Dim sWbkFullName, sFileRoot As String
Application.ScreenUpdating = False
Sheets("Round Scores").Select
For x = 1 To 23:
file_name1 = "2015-R" & x & "_TSstat.csv"
sFileRoot = Left$(file_name1, InStrRev(file_name1, ".") - 1)
sWbkFullName = sFileRoot & ".xlsx"
file_name2 = "C:\Users\Sean\Desktop\2015 Stats\" & file_name1
Workbooks.Open Filename:=file_name2
Set wb = ActiveWorkbook
wb.SaveAs sWbkFullName, xlWorkbookDefault
Next
The error arises once the file is opened with the Workbooks.Open command