ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] Ãö©ó¤£©T©wÄæ ¦Û°Ê¦C¦L¦Ü³Ì«á¤@µ§¸ê®Æ

¦^´_ 3# lpk187


    ¹ê¦b¤Ó·PÁ¤F,find ¯u¦n¥Î

TOP

¦^´_ 1# starry1314


    ¤]¥i¥H³o¼Ë¡I
  1. Option Explicit

  2. Sub ¥¨¶°1()
  3.     Dim c As Range
  4.     With Sheets("¤u§@ªí1")
  5.         Set c = .Rows(3).Find("P.P", , , , , 1) '©¹«á´M§ä
  6.         .PageSetup.PrintArea = .Range(.Cells(Rows.Count, 1).End(xlUp), Cells(2, c.Column)).Address '³]©w¦C¦L½d³ò
  7.         .PrintOut Copies:=1, Collate:=True, IgnorePrintAreas:=False '¦C¦L
  8.         Set c = Nothing
  9.         Set c = .Rows(3).Find("P.P", , , , , 2) '©¹«e´M§ä
  10.         .PageSetup.PrintArea = .Range(.Cells(Rows.Count, 1).End(xlUp), Cells(2, c.Column)).Address '³]©w¦C¦L½d³ò
  11.         .PrintOut Copies:=1, Collate:=True, IgnorePrintAreas:=False '¦C¦L
  12.         Set c = Nothing
  13.     End With
  14. End Sub
½Æ»s¥N½X

TOP

¦^´_ 1# starry1314


    µ¹§A°Ñ¦Ò¡A§Úªº°µªk
  1. Option Explicit

  2. Sub ¥¨¶°1()
  3.     Dim c As Range
  4.     With Sheets("¤u§@ªí1")
  5.         Set c = .Rows(3).Find("P.P", , , , , 1)
  6.         .PageSetup.PrintArea = "$A$2:" & .Cells(Rows.Count, c.Column).End(xlUp).Address '³]©w¦C¦L½d³ò
  7.         .PrintOut Copies:=1, Collate:=True, IgnorePrintAreas:=False '¦C¦L
  8.         Set c = Nothing
  9.         Set c = .Rows(3).Find("P.P", , , , , 2)
  10.         .PageSetup.PrintArea = "$T$2:" & .Cells(Rows.Count, c.Column).End(xlUp).Address
  11.         .PrintOut Copies:=1, Collate:=True, IgnorePrintAreas:=False '¦C¦L
  12.         Set c = Nothing
  13.     End With
  14. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ¶¢¤HµL¼Ö½ì¡A¦£¤HµL¬O«D¡C
ªð¦^¦Cªí ¤W¤@¥DÃD