Dim e As New Excel.Application
Dim s As Excel.Worksheet
Dim s2 As Excel.Worksheet
e.Workbooks.Open "e:\book1.xls"
Set s = e.Sheets(1)
Set s2 = e.Sheets(2)
For i = 1 To s.Rows.Count
If s.Rows(i).Cells(1) <> "" Then
For j = 1 To s.Rows(i).Cells.Count
If s.Rows(i).Cells(j) = "" Then
Exit For
Else
s2.Rows(i * 2 - 1).Cells(1) = "标题"
s2.Rows(i * 2).Cells(j) = s.Rows(i).Cells(j)
End If
Next
Else
Exit For
End If
Next i
e.SaveWorkspace
e.Workbooks.Close