Hi,
Check below example, for it to work add the component "Microsoft Common Dialouge Control" and add one to your form:
Private Sub Command1_Click()
Dim xl
Dim xlsheet
Dim xlwbook
Dim FilNam As String
Me.CommonDialog1.ShowOpen
FilNam = Me.CommonDialog1.FileName
If Me.CommonDialog1.FileName <> "" Or Me.CommonDialog1.FileName <> ".xls" Then
Set xl = CreateObject("Excel.Application")
Set xlwbook = xl.Workbooks.Open(FilNam)
Set xlsheet = xlwbook.Sheets.Item(1)
xl.Visible = True 'Remove to hide the excel file
Me.Text1 = xlsheet.range("A1") 'Do your work
Set xl = Nothing
Set xlwbook = Nothing
Set xlsheet = Nothing
End If
End Sub