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

[µo°Ý] EXCEL VBA °ÝÃD ¤£ª¾¬O§_¯à¦b¹wÄý¦C¦Lªº¨C¤@­¶ªº¤À­¶½u ¤W²¾¦ÜªÅ¥Õ¦C?

[µo°Ý] EXCEL VBA °ÝÃD ¤£ª¾¬O§_¯à¦b¹wÄý¦C¦Lªº¨C¤@­¶ªº¤À­¶½u ¤W²¾¦ÜªÅ¥Õ¦C?

§Ú¦³¥÷¸ê®Æ ¦b¹wÄý¦C¦L®É ­n½Õ¾ã¦C¦L®É¤£·|±N¸Ì­±¸ê®Æ¤ÀÂ÷ ©Ò¥H³£·|¥h©Ô¤À­¶½u¦ÜªÅ¥Õ¦C

¦ý¸ê®Æ¦³´X¤dµ§ ´N­n©Ô¤F´X¤Q´X¦Ê­¶ªº©³½u §Æ±æ¦³§Ö³t¤èªk ¥i¥Hª½±µÀ°§Ú§â¨C­¶ªº¤À­¶©³½u¤W²¾¦ÜªÅ¥Õ¦C

³Â·Ð¦U¦ì¤F
tingtwo22

¦^´_ 1# ¼ï¼ä


    ©p³o°ÝÃD­n³B²z, »Ý­n¤@¨Ç¼Æ¾Ú, 1. ¤@­¶ªºÁ`°ª«×´î(¦p¦³¼ÐÃD¦Cªº°ª«×©M),±o¥X¤º®e³¡¥÷°ª«×, ±q¦Ó¥H®e³¡°ª«×¬°¤W­­, ­pºâ¨C¦æ¬O§_¬°ªÅ¦æ©M§ä¥XªÅ¦æ, ¤Î²Ö¥[¦æ°ª¹F¦Ü³Ì±µªñ¥B<=®e³¡°ª«×¬°¤W­­, ´¡¤J¤À­¶½u§Y¥i¡C
    ¨D¤@­¶ªºÁ`°ª«×ªº¥N½X¬°: Rows("1:" & ActiveSheet.HPageBreaks(1).Location.Row - 1).Height

TOP

¦C¦L«e¥ý±NªÅ¥Õ¦CÁôÂáA³o¼Ë·|¤£·|¤ñ¸û²³æ¡C
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

¬O«ü¡e¨C¤@°Ï¬q¡fªºµ²§À¬Ò¥H¤@ªÅ¥Õ¦C¹j¶}¡A
¦C¦L®É¤£Åý¤U­Ó°Ï¬qªº¶}ÀY»P¤W¤@°Ï¬qªºµ²§À¦L¦b¦P¤@±i¡H¡H¡H

TOP

¦^´_ 4# ­ã´£³¡ªL


    ¶â°Ú
tingtwo22

TOP

Sub ¤â°Ê³]¸m¤À­¶½u()
Dim xR As Range
ActiveSheet.ResetAllPageBreaks '­«³]¤À­¶½u¡@
For Each xR In Range([A2], [A65536].End(xlUp))
¡@¡@'¤W¤@®æ­Y¬°¡eªÅ®æ¡f¡A¦¹¦C¥[¤J¡e¤À­¶½u¡f¡@
¡@¡@If xR(0) = "" Then Rows(xR.Row).PageBreak = xlPageBreakManual
Next
End Sub

µLÀɮװѦҡA¥u¯àµ¹¤èªk¡A¦³»~®t¦Û¦æ½Õ¾ã¡I

TOP

        ÀR«ä¦Û¦b : ¦³´¼¼z¤~¯à¤À¿ëµ½´c¨¸¥¿¡F¦³Á¾µê¤~¯à«Ø¥ß¬üº¡¤H¥Í¡C
ªð¦^¦Cªí ¤W¤@¥DÃD