- ©«¤l
- 471
- ¥DÃD
- 121
- ºëµØ
- 0
- ¿n¤À
- 579
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN10
- ³nÅ骩¥»
- OFFICE2019
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-4-16
- ³Ì«áµn¿ý
- 2023-1-17
|
¦^´_ 9# lpk187
¤£¦n·N«ä..¦³ÂI¥dÃö ·sªºµ{¦¡½X
·|¿ï¾Ü©Ò¦³¦C,¥t¥~¥ÎÅܼÆpºâ¦C«á¦A©ñ¤J·|ÅÜ¥u¿ï¨ú³Ì¤W±¨â¦C
Sub ¥¨¶°()
Dim c As Range, firstAddress$, myColumn%
With Sheets("¤u§@ªí1")
Set c = .Rows(3).Find("P.P", LookIn:=xlValues)
If Not c Is Nothing Then
firstAddress = c.Address
myColumn = 1
Do
.Range(.Cells(2, myColumn), .Cells(Rows.Count, c.Column).End(xlUp)).Name = "Print_Area"
.PrintOut Copies:=1, Collate:=True, IgnorePrintAreas:=False
Set c = .Rows(3).FindNext(c)
myColumn = myColumn + 19
Loop While Not c Is Nothing And c.Address <> firstAddress
End If
End With
End Sub |
|