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

[µo°Ý] (¤w¸Ñ¨M)¦p¦ó±N¦h­ÓÀÉ®×·JÁ`¦Ü¤@­ÓÀɮפ¤(¤À©u)

[µo°Ý] (¤w¸Ñ¨M)¦p¦ó±N¦h­ÓÀÉ®×·JÁ`¦Ü¤@­ÓÀɮפ¤(¤À©u)

¥»©«³Ì«á¥Ñ freeffly ©ó 2012-2-22 17:01 ½s¿è

§Ú¦³110´X¦UÀÉ®×ÀɮצWºÙ¦p200101«e­±4½X¬O¦~«×«á­±¨â½X¬O¤ë¥÷
³o¨ÇÀɮ׳£©ñ¦b¦P¤@­Ó¸ê®Æ§¨¤¤
§Ú·Q­n200101¡B200102¡B200103ªº¸ê®Æ¨Ì§Ç¤À§O¶K¨ì·JÁ`Àɮפ¤ªº²Ä¤@­Ó¤u§@ªí
200104¡B200105¡B200106ªº¸ê®Æ¨Ì§Ç¤À§O¶K¨ì·JÁ`Àɮפ¤ªº²Ä¤G­Ó¤u§@ªí
¦p¦¹¨Ì§Ç±N¸ê®Æ§¨¤¤ªºÀɮ׳£¶K¨ì·JÁ`Àɮפ¤
½Ð°Ý³o­Óµ{¦¡½X­n¦p¦ó¼g?
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ

¥»©«³Ì«á¥Ñ luhpro ©ó 2011-6-7 00:35 ½s¿è

¨Ì§Aªº»Ý¨D¨Ó¬Ý°ò¥»¤W§Ú­Ì­n°µªº´N¬O :
1. §ä¨ì»Ý­n³B²zªºÀÉ®×
2. «Ø¥ß·sªº(©Î§ä¨ì³o­Ó) Excel WorkBook
3. ±N¸Ó©u¤T­Ó¤ëªºÀɮפ¤ªºSheet ·s¼W(Copy)¨ì³o­Ó WorkBook
4. µ¹©w¸Ó©uªºÀɮצWºÙ¨Ã¦sÀÉ«áÃö³¬
5. Ä~Äò³B²z¤U¤@­ÓÀÉ®×

²Ä 1. ­Ó¨BÆJ¥i¥H¥Î Dir «ü¥O¨Ó¹F¦¨.
²Ä 2 ~ 4 ªº¨BÆJ§Ú¤j·§¦C¥X¤@¨Ç¨BÆJµ¹§A°Ñ¦Ò :
  1.   Dim sSouFile$, sTarFile$
  2.   Dim shSou, shTar

  3.   '°õ¦æ«e½Ð¥ý¦b¤u§@¥Ø¿ý¤U«Ø¥ß¤@­Ó Ans ¥Ø¿ý, ¥Î¨Ó¦s©ñÂà´«¹L«áªºÀÉ®×, ¥iÁקK·s«ØªºÀɮפ]³Q Dir ¯Ç¤J³B²z³y¦¨¿ù»~µ²ªG
  4.   
  5.   '³o¸Ì¨Ï¥Î dir «ü¥O§ä¨ì»Ý­n³B²zªºÀɮרö}±Ò¥¦, µJÂI³]¦b­n Copy ªº Sheet
  6.   '¥H¤U°²³]¸ÓÀɮצWºÙ¤w¸g½á¤©µ¹ sSouFile ¤F, §Y sSouFile = "200101.xls" ¤§Ãþ
  7.   'sSouFile = "200101.xls"

  8.   Application.DisplayAlerts = False
  9.   
  10.   Set shSou = Sheets(1) ' °²³] 200101.xls Àɮפ¤­n Copy ªº¬O Sheet(1)
  11.   With shSou
  12.     sTarFile = Left(sSouFile, 4) & Right("0" & Int((Val(Mid(sSouFile, 5, 2)) - 1) / 3) + 1, 2) ' Âà´«¦¨©uÀɦW
  13.    sTarFile = ThisWorkbook.Path & "\Ans\" & sTarFile & ".xls"
  14.       
  15.     .Copy
  16.       
  17.     Set shTar = ActiveWorkbook.ActiveSheet
  18.    
  19.     With shTar.Parent
  20.       shTar.Name = Mid(sSouFile, 5, 2)
  21.       .SaveAs Filename:=sTarFile
  22.       .Close
  23.     End With
  24.   End With
  25.     Application.DisplayAlerts = True
½Æ»s¥N½X
¤W­zµ{¦¡ÁÙ¦³¤@­Ó°ÝÃD´N¬O¨C­ÓÀɮ׳£¥u¦³¤@­Ó Sheet,
¦]¬°«ç»ò§â Sheet ·s¼W¨ì¬Y­ÓÀɮפ¤ªº¬Y­ÓSheet«e(©Î«á)­±,
³oÂI§ÚÁÙ¨S´ú¸Õ¥X¨Ó.

TOP

¦^´_ 2# luhpro


    ÁÂÁ¤j¤j´£¨Ñ³o¤è¦¡Åý§Ú«ä¦Ò
    ÁöµMÁÙ¨S¦³¥þ³¡¸Ñ¨M§Úªº°ÝÃD
    ¤£¹L¤w¸gÅý§Ú¬Ý¨ì¤@¨Ç­ì¥»¨S·Q¨ìªºªF¦è
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ

TOP

        ÀR«ä¦Û¦b : ¤ß¤¤±`¦sµ½¸Ñ¡B¥]®e¡B·P«ä¡Bª¾¨¬¡B±¤ºÖ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD