i am trying to browse select open the file
i have error in appExcel line object value set to nothing.
could you help me
Set appExcel = CreateObject("Excel.Application")
appExcel = Application.GetOpenFilename(FileFilter:="Excel Files (*.xls), *.xls", Title:="Please select a file")
If appExcel Is Nothing Then
MsgBox ("Could not open Excel.")
Exit Sub
End If
appExcel.DisplayAlerts=false
i have error in appExcel line object value set to nothing.
could you help me
Set appExcel = CreateObject("Excel.Application")
appExcel = Application.GetOpenFilename(FileFilter:="Excel Files (*.xls), *.xls", Title:="Please select a file")
If appExcel Is Nothing Then
MsgBox ("Could not open Excel.")
Exit Sub
End If
appExcel.DisplayAlerts=false