|
本帖最后由 doul123 于 2018-4-12 21:25 编辑
把下面这段修改到你的程序中,应该就行了把。
Sub Table_Print()
For i = 2 To Sheet2.Cells(Rows.Count, 5).End(xlUp).Row Step 2
Sheet4.[e3] = Sheet2.Cells(i, 6)
Sheet4.[l3] = Sheet2.Cells(i, 8)
Sheet4.[t3] = Sheet2.Cells(i, 7)
Sheet4.[f4] = Sheet2.Cells(i, 9)
Sheet4.[v3] = Sheet2.Cells(i, 5)
Sheet4.[e14] = Sheet2.Cells(i + 1, 6)
Sheet4.[l14] = Sheet2.Cells(i + 1, 8)
Sheet4.[t14] = Sheet2.Cells(i + 1, 7)
Sheet4.[f15] = Sheet2.Cells(i + 1, 9)
Sheet4.[v14] = Sheet2.Cells(i + 1, 5)
Next
Sheet4.Select
ActiveSheet.Printout
End Sub
|
|