M
moonhk
Hi All
Excel 2007
Sub OpenFile_USER_LIST()
On Error Resume Next
Dim i As Integer
Dim returnValue As Workbook
returnValue = Workbooks.Open(Filename:="D:\files\User_List.xlsx")
End Sub
When Run above code prompted "Code execution has been interruped" .
Why this happened ?
This worksheet without any VBA.
End Sub <---- Error here
This procedure called by Menu Command or run in Modules.
Run 2nd/3rd time have error Code execution has been interruped
Excel 2007
Sub OpenFile_USER_LIST()
On Error Resume Next
Dim i As Integer
Dim returnValue As Workbook
returnValue = Workbooks.Open(Filename:="D:\files\User_List.xlsx")
End Sub
When Run above code prompted "Code execution has been interruped" .
Why this happened ?
This worksheet without any VBA.
End Sub <---- Error here
This procedure called by Menu Command or run in Modules.
Run 2nd/3rd time have error Code execution has been interruped