- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 13# linshin1999
¦b¤À¶¹wÄý¼Ò¦¡¤U :
²¾°Ê¥ô¦ó¦Û°Ê¤À¶½u(µê½u) ´NÅܦ¨¤â°Ê(¹ê½u)
²Ä¤@±ø¦Û°Ê¤À¶½u(µê½u) ¦p©¹¤W©ì²¾¤p©ó ²Ä¤@±ø¦Û°Ê¤À¶½u(µê½u) ¬OµLªk ±N©Ò¦³¤À¶½u©T©w¦b²¾°Êªº¿¼Æ¦C¤W
²Ä¤@±ø¦Û°Ê¤À¶½u(µê½u) ¦p©¹¤U©ì²¾¤j©ó ²Ä¤@±ø¦Û°Ê¤À¶½u(µê½u) ¥i±N©Ò¦³¤À¶½u©T©w¦b²¾°Êªº¿¼Æ¦C¤W
µ¹§A¤@µ{§Ç¸Õ¸Õ¬Ý
- Sub Ex()
- Dim Rng As Range, R%, C%, i%, A%
- With ActiveSheet '§@¥Î¤¤ªº¤u§@ªí
- Set Rng = .Range("A1:J182") '©Òn¦L¦Cªº¤@³sÄòªº½d³ò
- R = 50 '¦L¦C¨C¶©T©w¤§¦C¼Æ
- C = Rng.Columns.Count '¤@³sÄòªº½d³òªºÄæ¼Æ
- With .PageSetup '¦L¦Cªº³]©w
- .Zoom = False '°±¤îÁY©ñ
- .FitToPagesTall = 1 '³]©w¬°1¶°ª
- .FitToPagesWide = 1 '³]©w¬°1¶¼e
- .CenterHorizontally = True '¶±¤Wªº¤u§@ªí¬O¤ô¥¸m¤¤
- .CenterVertically = True '¶±¤Wªº¤u§@ªí¬O««ª½¸m¤¤
- End With
- For i = 1 To Rng.Rows.Count '©Òn¦L¦Cªº¤@³sÄòªº½d³òªºÁ`¦C¼Æ
- A = IIf(Rng.Rows.Count > i + R, R, Rng.Rows.Count - i + 1)
- .PageSetup.PrintArea = Rng(i, 1).Resize(A, C).Address '³]©wn¦C¦L½d³òªº¦ì¸m¦r¦ê
- i = i + R - 1
- .PrintPreview '¦L¦C¹wÄý
- '.PrintOut '¦L¦C
- Next
- End With
- End Sub
½Æ»s¥N½X |
|