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

¤£¦P¤u§@ªí¦C¦L¤£³sÄò­¶½X

¤£¦P¤u§@ªí¦C¦L¤£³sÄò­¶½X

¥»©«³Ì«á¥Ñ xiongbear ©ó 2012-12-3 13:53 ½s¿è

½Ð°Ý
Excel ¦h¤u§@ªí¦C¦L®É
°²¦p Sheet1 ¦³3­¶,Sheet2 ¦³5­¶,Sheet3 ¦³2­¶
¥ÎCtrl¿ï¨ú¤T­Ó¤u§@ªí ¨Ï¥Î¦C¦L
¦ý¦C¦L¥X¨Ó·|Åܦ¨
Sheet1 ²Ä1­¶ ¦@10­¶(¤T­ÓSheetªº­¶¼Æ¤F)
§Ú§Æ±æ¯à°÷ ¤£¦P¤u§@ªíªº­¶½X½s±Æ¤è¦¡³£¬O¿W¥ßªº
§Y Sheet ²Ä1­¶ ¦@3­¶
     Sheet ²Ä1­¶ ¦@5­¶
¦³·Q¨ì¤@­Ó¤èªk
´N¬O¯à°÷¨Ï¥ÎVBA Åý¥¦¥h¹ï¨C­Ó¤u§@ªí ¿W¥ß­¶¦L
½Ð°Ý¸Ó¦p¦ó¹ê°µ?

ÁÂÁÂ

¦^´_ 1# xiongbear

·s¼W¤@­Ó«ö¶s
¸Ì­±¶K¤J¥H¤UVBA
  1. sub ³sÄò¦C¦L()
  2. Dim sh As String '«Å§i¬°¦r¦ê«¬ºA
  3. sh = ActiveWorkbook.Sheets.Count '°»´ú¬¡­¶³¡¤ºªº¤u§@ªí¼Æ¶q
  4.     for i = 1 to sh
  5.            Worksheets(i).PrintOut   ' ²©ö§Ö³t¦C¦L  ¤£µ¹¿ï¾Ü»P´£¥Üªº  «ö¤U¥hª½±µ¦L
  6.     next i
  7. end sub
½Æ»s¥N½X
¦³°ÝÃD¦Aµo°Ý!
¦Û¥Î¨®¤]¥i¥Hñ±b³á!
¤­¤d¤¸¥[ªoª÷¥[¤Jªo½c«áÁÙ¦^õX±z6200¤¸
ºÖ§Q©ô¨®¤Í·|power-want.com

TOP

¦^´_ 1# xiongbear
¸Õ¸Õ¬Ý
  1. '¤w¥ÎCtrlÁä¿ï¨ú¤T­Ó¤u§@ªí:°õ¦æ¦C¦L
  2. Option Explicit
  3. Sub Ex()
  4.    Dim Sh As Worksheet
  5.    For Each Sh In ActiveWindow.SelectedSheets '¤u§@¸s²Õ
  6.         Sh.PrintOut
  7.    Next
  8. End Sub
½Æ»s¥N½X

TOP

¦^´_ 3# GBKEE
¦^´_ 2# die78325


¥i¥H§@¥Î¤F ÁÂÁÂ

TOP

        ÀR«ä¦Û¦b : ¤£©È¨Æ¦h¡A¥u©È¦h¨Æ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD