¥»©«³Ì«á¥Ñ starry1314 ©ó 2016-12-6 10:03 ½s¿è
¼Ï¯Ã¤ÀªRªí
½Ð°ÝVBA¸Ó¦p¦ó³]©w ¦Û°Ê¿ï¾Ü¦C¦L½d³ò«á¦C¦L
1.¤À¦¨¤T±i 1F¡B2F¡B3F
2.¥Ø«e·Qªk¬OA2¶}©l¨ì¤U¤@¦C ¨Ã¥]§t¦Xp¨â¦rªº¦C ¬°¦C¦L½d³ò
3.¦b±q¤W¦¸¹B¦æµ²ªGªº¤U¤@¦C«½Æ´`Àô..
¦Û°Ê´`Àô¦C¦L_§PÂ_¦C¦L½d³ò.rar (10.68 KB)
¦¹¬°¾î¦Vªº¤è¦¡- Option Explicit
- 'LPK87 ´£¨Ñ
- Sub ¥¨¶°1()
- Dim c As Range
- With Sheets("¤u§@ªí1")
- Set c = .Rows(3).Find("P.P", , , , , 1) '©¹«á´M§ä
- .PageSetup.PrintArea = .Range(.Cells(Rows.Count, 1).End(xlUp), Cells(2, c.Column)).Address '³]©w¦C¦L½d³ò
- .PrintOut Copies:=1, Collate:=True, IgnorePrintAreas:=False '¦C¦L
- Set c = Nothing
- Set c = .Rows(3).Find("P.P", , , , , 2) '©¹«e´M§ä
- .PageSetup.PrintArea = .Range(.Cells(Rows.Count, 1).End(xlUp), Cells(2, c.Column)).Address '³]©w¦C¦L½d³ò
- .PrintOut Copies:=1, Collate:=True, IgnorePrintAreas:=False '¦C¦L
- Set c = Nothing
- End With
- End Sub
½Æ»s¥N½X |