- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 11# trainee - Sub Ex()
- Dim Rng As Range, E As Range, i, ii
- Set Rng = Sheets("Print Sheet").Range("B1, F1, B6, F6")
- With Sheets("Data Sheet")
- For i = 2 To .Cells(Rows.Count, "A").End(xlUp).Row Step 4
- ii = 0: Rng.EntireColumn = "": Rng.Offset(, 2).EntireColumn = ""
- For Each E In Rng
- E = .Cells(i + ii, "A")
- E.Offset(2) = .Cells(i + ii, "B")
- E.Offset(2, 2) = .Cells(i + ii, "C")
- E.Offset(4) = .Cells(i + ii, "D")
- E.Offset(4, 2) = .Cells(i + ii, "E")
- ii = ii + 1
- Next
- With Rng.Parent
- .PageSetup.PrintArea = "a1:h10"
- .PageSetup.FitToPagesWide = 1
- .PageSetup.FitToPagesTall = 1
- .PrintOut
- End With
- Next
- End With
- End Sub
½Æ»s¥N½X |
|