Set xlapp = New Excel.Application
'Set xlapp = CreateObject("excel.Application")
'xlapp.Visible = False '''''隐藏excel
Set xlbook = xlapp.Workbooks.Open(file)
xlbook.Application.DisplayAlerts = False
With xlbook.Sheets(1)
For R = 1 To Sl
For c = 1 To 15
Vas.Row = (i - 1) * Sl + R
Vas.Col = c
.Cells(R + 4, c) = Vas.Text
If c = 6 Then
.Cells(R + 4, c) = Format(Vas.Text, "yyyy-mm-dd")
End If
Next
Next
.PageSetup.Orientation = xlLandscape
.PrintOut
xlapp.Visible = False
xlapp.ActiveWorkbook.Saved = True
xlapp.Quit
Set xlbook = Nothing
Set xlapp = Nothing
Label6.Caption = "已经打印 " & i & "页"
End With