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

excel vba¦p¦ó§ì¨ú¸ê®Æ»PªÅ¦ì¬d¸ß

excel vba¦p¦ó§ì¨ú¸ê®Æ»PªÅ¦ì¬d¸ß

¿ûªO.zip (920.48 KB)
§Ú·Q±Nsheets("Àx¦ì")CÄ椽¦¡§ï¦¨vba¦p¦ó°µ?

¦^´_ 1# aassddff736


    ÁÂÁ«e½úµoªí¦¹¥DÃD»P½d¨Ò
«á¾ÇÂǦ¹©«½m²ß°}¦C»P¦r¨å,¾Ç²ß¤è®×¦p¤U,½Ð«e½ú°Ñ¦Ò

Option Explicit
Sub TEST()
Dim Brr, Crr, Z, i&, s%, T$
Set Z = CreateObject("Scripting.Dictionary")
For s = 2 To 4
   Brr = Range(Sheets(s).[B3], Sheets(s).[A65536].End(3))
   For i = 1 To UBound(Brr)
      T = Format(Trim(Brr(i, 1)), "0000"): If T = "" Then GoTo i01
      If Z(T) = "" Then Z(T) = Brr(i, 2) & "" Else MsgBox T & "  ­«½Æ": Exit Sub
i01: Next
Next
Crr = Range(Sheets(1).[B7], Sheets(1).[B65536].End(3))
For i = 1 To UBound(Crr)
   Crr(i, 1) = Z(Format(Trim(Crr(i, 1)), "0000"))
Next
Sheets(1).[D7].Resize(UBound(Crr)) = Crr
End Sub
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_ 2# «pÁy¥Öªº¾Ç¥Í

·PÁ«ü¾É   ^^

TOP

¦^´_ 3# aassddff736

½Ð±Ð¤@¤U¦pªG­n¶}±ÒÀɮצ۰ʧó·sÀx¦ì½s¸¹ ¦p¦ó³]©w

TOP

¦^´_ 2# Andy2483


    ½Ð±Ð¤@¤U¦pªG­n¶}±ÒÀɮצ۰ʧó·sÀx¦ì½s¸¹ ¦p¦ó³]©w

TOP

¦^´_ 5# aassddff736


    ÁÂÁ«e½ú¦^´_
¦bThis WorkBook ¼Ò²Õ¤U¥H°Æµ{¦¡°õ¦æ


¶}±ÒÀɮצ۰ʧó·sÀx¦ì½s¸¹ :
Private Sub Workbook_Open()
Call TEST
End Sub
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_ 6# Andy2483

·PÁ§Aªº¦^ÂÐ:handshake

TOP

        ÀR«ä¦Û¦b : ªY½à§O¤H´N¬O²øÄY¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD