On Error Resume Next
Dim exapp As New Excel.Application
Dim exBook As Excel.Workbook
Dim exSheet As Excel.Worksheet
Dim i As Integer
Dim strName As String
Set exBook = exapp.Workbooks.Open(CurrentProject.Path & "\扣罚款单工作薄.xls")
For i = 2 To exBook.Sheets.Count
DoCmd.TransferSpreadsheet acImport, , "KFKtable", CurrentProject.Path & _
"\扣罚款单工作薄.xls", True, exBook.Worksheets(i).name & "!"
Next
exBook.Close
Set exBook = Nothing
exapp.Quit
Public Function OpenEXCEL_SaveSheetTo_Access() As Boolean
Dim obj_newExcelApp As New Excel.Application
Dim obj_newExcelBook As New Excel.Workbook
Dim obj_newWorkSheet As New Excel.Worksheet
Dim str_aryReadData(17) As String
Dim iii As Long, jjj As Long, kkk As Long
Dim obj_DataBase As DAO.Database
Dim obj_DataRecordGo As DAO.Recordset
obj_newExcelApp.Workbooks.Open "D:\保单续缴表_sz.xls"
Set obj_newExcelBook = obj_newExcelApp.Workbooks(1)
Set obj_newWorkSheet = obj_newExcelBook.Sheets(1)