VB Code:
Sub Form_Load()
dim oExcelApp as Object,oExcelWK as Object,oExcelSH as Object
Set oExcelapp = CreateObject("Excel.Application")
Set oExcelWK = oExcelApp.Workbooks.Open("ExcelFile.xls")
Set oExcelSH = oExcelWK.Worksheets("Sheet1")
oExcelwk.Activate
'--- read data
text1.text = oExcelSH.Range("E12").value
'oExcelapp.Visible = True ' don't remark if u want to show
oExcelwk.Close False
oExcelapp.Quit
End Sub
Sub Form_Unload()
Set oExcelApp=Nothing
Set oExcelWK=Nothing
Set oExcelSH=Nothing
End Sub