ªð¦^¦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

HP = ActiveSheet.HPageBreaks.Count + 1 'Áa¦V­¶¼Æ
VP = ActiveSheet.VPageBreaks.Count + 1 '¾î¦V­¶¼Æ
PG = HP * VP 'Á`­¶¼Æ

TOP

        ÀR«ä¦Û¦b : ¯à¥I¥X·R¤ß´N¬OºÖ¡A¯à®ø°£·Ð´o´N¬O¼z¡C
ªð¦^¦Cªí ¤W¤@¥DÃD