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

[µo°Ý] ¥i§_¥ÎVBA¨Ó±±¨î¦C¦L½d³ò¡H

[µo°Ý] ¥i§_¥ÎVBA¨Ó±±¨î¦C¦L½d³ò¡H

VIP.rar (12.95 KB)

¦pÃD
¤u§@ªí®æ¦¡©T©w³o¼Ë¤l¤£ÅÜ
¸ê®Æ¼W´î³£¥u¦b¦³ÃC¦âªº½d³ò¤ºÅÜ¤Æ (¦C·|¼W´î¡A¦æ¤£ÅÜ)
³Ì¤Ö¬ù10µ§¡A³Ì¦h¬ù300µ§

°ÝÃD
1. ¦]¬°¸ê®Æ¦h¤Ö¤£¤@©w¨C¦¸³£·|¦h¦L¥X1~3±iªÅ¥Õ®æ¤l¯È±i--->®ö¶O¯È
2. ¦pªG¥ý³]©w¦C¦L½d³ò¦A¦C¦L---->³Â·Ð¤SÃø±±¨î

ºc·Q
1. ¥ÎVBA±±¨î¡A¦C¦L¥X¦³¸ê®Æªº½d³ò¡A¨S¦³¸ê®Æªº®æ¤l¤£¦C¦L
2.

·PÁ¡I

¦^´_ 1# bvge
ªí®æ¤º®e¬O¥Ñ¤½¦¡¨D±o
©Ò¥H­n¥Î°j°é§ä¥X¸ê®Æ§À
  1. Sub nn()
  2. r = [C65536].End(xlUp).Row
  3. Do Until Cells(r, 3) <> ""
  4. r = r - 1
  5. Loop
  6. ActiveSheet.PageSetup.PrintArea = "A1:AB" & r
  7. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

Hsieh¶Wª©
¼F®`³á
¸Ñ¨MÃøÃD¤F
·P¿E¤£ºÉ
ÁÂÁÂ

TOP

¦^´_  bvge
ªí®æ¤º®e¬O¥Ñ¤½¦¡¨D±o
©Ò¥H­n¥Î°j°é§ä¥X¸ê®Æ§À
Hsieh µoªí©ó 2011-2-14 21:35



¦]¬°¨S¾Ç¹LVBA
·Q½Ð°ÝHsieh¶Wª©
³o¤@¦ê¸Õ¤F«Ü¦n¥Î¡A¦ý¬O³Ì«áÁÙ­n¥h«ö¤@¤U"¦C¦L"«ö¶s¤~·|±q¦Lªí¾÷¥X¨Ó
¯à§_¦A¥[¤J´X­Ó¦rÅý¥¦¯à¦Û°Ê±q¦Lªí¾÷¶]¥X¨Ó
µ¥©ó¬O³]©w¦C¦L½d³ò + ¦C¦L¤@¦¸§¹¦¨ (§Ú¦nÃi´k)
ÁÂÁ¡I

TOP

¦^´_ 4# bvge
µ¥©ó¬O³]©w¦C¦L½d³ò + ¦C¦L¤@¦¸§¹¦¨ (§Ú¦nÃi´k)
¸Ñ¨MÃi´k¤èªk:
¤@¡BÃ㾦^®a·í¤Ö·Ý
¤G¡B¥[±j¦Û§Ú¾³õÄvª§¤O¡A´£¤É¦Û¤vªº¯à¤O


§Q¥Î¨Æ¥óÅX°Êµ{§Ç
  1. Private Sub Workbook_BeforePrint(Cancel As Boolean)
  2. With ActiveSheet
  3. r = .[C65536].End(xlUp).Row
  4. Do Until .Cells(r, 3) <> ""
  5. r = r - 1
  6. Loop
  7. .PageSetup.PrintArea = "A1:AB" & r
  8. End With
  9. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

·PÁ¶Wª©
¨ü±Ð¤F
ÁÂÁ¡I

TOP

¦^´_ 2# Hsieh


    Hsieh§A¦n
          °²³]³Ì«á¤@­¶¥u¦³3¦æ¸ê®Æ,¦ý¦]ª©­±°ÝÃD,·QÅý³Ì«á¤@­¶¦C¦L¦æ¼Æ¸ò«e¤@­¶¤@¼Ë,¥i¦æ¶Ü?

TOP

¦^´_ 5# Hsieh


    ¶W¯Åª©¥D ±z¦n!

     ¦b³o¸Ì¨ç¼Æ¸Ì, §Ú¥i¥H¥[¤J­n¨Ï¥Î­þ¥x¦Cªí¾÷¦C¦L¶Ü?

TOP

        ÀR«ä¦Û¦b : ¤Hªº²´·úªø¦b«e­±¡A¥u¬Ý¨ì§O¤Hªº¯ÊÂI¡Aµ·²@¬Ý¤£¨ì¦Û¤vªº¯ÊÂI¡C
ªð¦^¦Cªí ¤W¤@¥DÃD