ما الخظأ في هذه الدلة
Function GetImportFile()
On Error Resume Next
Dim mFile As String
mFile = GetFile("Choose a file to import", "Excel Files (*.xls)", "*.xls")
If Len(mFile) = 0 Then Exit Function
Me.ImportFile = mFile
GetSheetnames
Exit Function
GetImportFile_Error:
MsgBox Err.Number & Err.Description
Stop
Resume Next
End Function
Function GetImportFile()
On Error Resume Next
Dim mFile As String
mFile = GetFile("Choose a file to import", "Excel Files (*.xls)", "*.xls")
If Len(mFile) = 0 Then Exit Function
Me.ImportFile = mFile
GetSheetnames
Exit Function
GetImportFile_Error:
MsgBox Err.Number & Err.Description
Stop
Resume Next
End Function