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

[µo°Ý] ¦p¦ó±o¨ì·í«e¦C¦L½d³ò­¶¼Æ?

[µo°Ý] ¦p¦ó±o¨ì·í«e¦C¦L½d³ò­¶¼Æ?

¦p¦ó±o¨ì·í«e¦C¦L½d³ò­¶¼Æ?
§Ú·Q­n¦bVBA¤¤¶¡¥[¤J§PÂ_·í«e¦C¦L½d³ò­¶¼Æ¬O§_¶W¹L2­¶
  1. Public Sub ¦C¦L()
  2. With Worksheets("1111")
  3. .PageSetup.PrintArea = .Range(Cells(1, 1), Cells(Rows.Count, 9)).Address '³]©w¦C¦L½d³ò

  4. '<---¥[¤J§PÂ_­¶­±¬O§_¶W¹L2­¶
  5. MyPage = 1 '<---Àò±o·í«e¦C¦L½d³ò­¶¼Æ
  6. If MyPage > 2 Then '<---§PÂ_·í«e¦C¦L½d³ò­¶¼Æ
  7. MsgBox "­¶­±¶W¹L2­¶¡A½Ð­«·s½Õ¾ã­¶­±¡A¦A¦C¦L"
  8. Else
  9. .PrintOut Copies:=1, Collate:=True, IgnorePrintAreas:=False '¦C¦L
  10. End If
  11. End With
  12. End Sub
½Æ»s¥N½X

        ÀR«ä¦Û¦b : ·R¤£¬O­n¨D¹ï¤è¡A¦Ó¬O­n¥Ñ¦Û¨­ªº¥I¥X¡C
ªð¦^¦Cªí ¤W¤@¥DÃD