Public Sub TestImport()
Dim x As Integer
Dim strSheet As String
On Error GoTo Handler:
For x = 1 To 15
strSheet = "Result " & x & "!"
DoCmd.TransferSpreadsheet _
acImport, _
acSpreadsheetTypeExcel8, _
"core", _
"U:\Projects\Clear Extracts\core.xls", _
True, _
strSheet
Next x
MsgBox "Core Complete."
Exit Sub
Handler:
MsgBox Err.Description
[COLOR=red]End Sub[/COLOR]
[COLOR=red]Public Sub TestImport()[/COLOR]
Dim x As Integer
Dim strSheet As String
On Error GoTo Handler:
For x = 1 To 15
strSheet = "Result " & x & "!"
DoCmd.TransferSpreadsheet _
acImport, _
acSpreadsheetTypeExcel8, _
"pref", _
"U:\Projects\Clear Extracts\pref.xls", _
True, _
strSheet
Next x
MsgBox "Pref Complete."
Exit Sub
Handler:
MsgBox Err.Description
[COLOR=red]End Sub[/COLOR]
[COLOR=red]Public Sub TestImport()[/COLOR]
Dim x As Integer
Dim strSheet As String
On Error GoTo Handler:
For x = 1 To 15
strSheet = "Result " & x & "!"
DoCmd.TransferSpreadsheet _
acImport, _
acSpreadsheetTypeExcel8, _
"rel", _
"U:\Projects\Clear Extracts\rel.xls", _
True, _
strSheet
Next x
MsgBox "Rel Complete."
Exit Sub
Handler:
MsgBox Err.Description
End Sub