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

¶×¤JÁ`ªí¼Æ¾Úbug

¤j®v¡A·Q°Ý­Ó!!
¦pªG¥H§Ú­ì¥»ªº¤@ªø¦êªº¤è¦¡¬O¥i¥H±aªº¹L¥hªº
¦ý²{¦b¥d¦íªº¦³¨âÂI
1.¦p¦P±z¼g ...
waitto04 µoªí©ó 2022-5-29 11:26


2.BªºÄæ¦ì³£·|³Q¸õ¹L
>> ¬Ý§Aªºµ{¦¡¡A­Ó¤À­¶¸ê®Æ-->"¸gÀçªí®æ"-->CÄæ¸ê®Æ--> Á`ªí
¬Ý¤£À´§A¹ê»Ú»Ý¨D¬O­n¤°»ò¡AÁÂÁÂ

TOP

¦^´_  samwang


  ¦³ÂI·Q­ú!
¬O¦]¬°ª©¥»¤£¦PªºÃö«Y©Ò¥H¦³©Ò®t§O??
¦]¬°¯uªº±a¤£¥X¨Ó...
waitto04 µoªí©ó 2022-5-29 11:11


With sheets(1) ¥ý³]°±¤îÂI¡AµM«á«öF5°õ¦æ¡A¦A½T»{¦r¨å¦³µL¸ê®Æ¡A¥¿½TÀ³¸Ó­n¦³¸ê®Æ¡A½Ð½T»{¡AÁÂÁÂ

1.JPG (223.23 KB)

1.JPG

TOP

¤Ï¦Ó­ì¦³ªº"¸gºÞªí®æ"¤º®e¤]³Q²MªÅ¤F
>> ¹ï¤£°_¡A²M°£Á`ªí¸ê®Æ = ""¡A«e­±¤Ö¤F. ½Ð¦Û¦æ¥[¤J¡A§Ú¤]§âµ{ ...
samwang µoªí©ó 2022-5-29 10:58



    ¤j®v¡A·Q°Ý­Ó!!
¦pªG¥H§Ú­ì¥»ªº¤@ªø¦êªº¤è¦¡¬O¥i¥H±aªº¹L¥hªº
¦ý²{¦b¥d¦íªº¦³¨âÂI
1.¦p¦P±z¼gªº¡÷ If InStr(sh.Name, "±M®×") Then '¤u§@¦WºÙ¦³±M®×
   §Ú¤]·Q¶Èsheet Name ¦³"±M®×" ¤~¯à§@·~!!
2.BªºÄæ¦ì³£·|³Q¸õ¹L

³o¨â­Ó¥H­ì¥»¼gªº¤è¦¡¬O»Ý­n¦A¥[¤°»ò°j°é¶Ü?
¦³¹Á¸Õ§â§Aªº»yªk±a¤J§Úªº»yªk¤º¡A¦ý¬O¨S¿ìªk¶¶§Q¦¨¥\

ÃĦA³Â·Ð¤j¤j¤F!

TOP

¦^´_ 9# samwang


  ¦³ÂI·Q­ú!
¬O¦]¬°ª©¥»¤£¦PªºÃö«Y©Ò¥H¦³©Ò®t§O??
¦]¬°¯uªº±a¤£¥X¨Ó...

TOP

¥»©«³Ì«á¥Ñ samwang ©ó 2022-5-29 11:00 ½s¿è
¦^´_  samwang


    ·PÁ§A¤£¹½¨ä·Ðªº´ú¸Õ!!
¦ý¨S¿ìªk¦¨¥\¤Þ¤J...¤Ï¦Ó­ì¦³ªº"¸gºÞªí®æ"¤º®e¤]³Q²MªÅ¤F ...
waitto04 µoªí©ó 2022-5-29 10:40


¤Ï¦Ó­ì¦³ªº"¸gºÞªí®æ"¤º®e¤]³Q²MªÅ¤F
>> ¹ï¤£°_¡A²M°£Á`ªí¸ê®Æ[b5:f58] = ""¡A«e­±¤Ö¤F. ½Ð¦Û¦æ¥[¤J¡A§Ú¤]§âµ{¦¡ªþ¤W»¡©ú¡A½Ð¦A¦Û¤v½T»{¤@¤U¡AÁÂÁÂ

Sub test()
Dim Arr, xD, T$, i&, j%
Set xD = CreateObject("Scripting.Dictionary")
For Each sh In Sheets
    If InStr(sh.Name, "±M®×") Then '¤u§@¦WºÙ¦³±M®×
        With sh
            Arr = .[a1].CurrentRegion '¸ê®Æ¸Ë¤J¼Æ²Õ
            For i = 5 To UBound(Arr)
                If Arr(i, 3) = "" Then GoTo 90 '¨S¼Æ¾ÚÂ÷¶}
                T = sh.Name & "|" & Arr(i, 1)  '±ø¥ó:¤u§@ªí¦WºÙ+¶µ¥Ø
                xD(T) = Arr(i, 3)              '¼Æ¾Ú¸Ë¤J¦r¨å
90:         Next
        End With
    End If
Next
With Sheets(1)
   .[b5:f58] = "" '²M°£­ì¦³¼Æ¾Ú¸ê®Æ¡A«e­±­ì¨Óº|±¼  .   ¡A½Ð¦Û¦æ­×§ï
    Arr = .[a1].CurrentRegion  '¸ê®Æ¸Ë¤J¼Æ²Õ
    For i = 5 To UBound(Arr): For j = 2 To UBound(Arr, 2)
        T = Arr(4, j) & "|" & Arr(i, 1) '±ø¥ó:¤u§@ªí¦WºÙ+¶µ¥Ø
        Arr(i, j) = xD(T) '¶×¥X¦r¨å¼Æ¾Ú
    Next: Next
    .[a1].Resize(UBound(Arr), UBound(Arr, 2)) = Arr '¼Æ¾Ú¦^¶ñ¨ìexcel
End With
End Sub

TOP

¦^´_ 7# samwang


    ·PÁ§A¤£¹½¨ä·Ðªº´ú¸Õ!!
¦ý¨S¿ìªk¦¨¥\¤Þ¤J...¤Ï¦Ó­ì¦³ªº"¸gºÞªí®æ"¤º®e¤]³Q²MªÅ¤F!!
¦³©w¸q§@¥Î­¶­±¬O¦b­þ­Ó¶Ü?

Â^¨ú1.PNG (78.86 KB)

Â^¨ú1.PNG

TOP

¦^´_  samwang


   
³o­Ó¨S¿ìªk§@·~...
¨S¦³bug ¦ý¬OÁ`ªí¨S¦³¥Í¦¨
waitto04 µoªí©ó 2022-5-29 09:59


§Ú´ú¸Õ¨S°ÝÃD¦pªþ¥ó¡A¤ñ¹ï±ø¥ó¦p·Ó¤ù(¤u§@ªí¦WºÙ+¶µ¥Ø)¦³²Å¦X´N±a¤J¼Æ¾Ú¡A
½Ð¦A´ú¸Õ¬Ý¬Ý¡AÁÂÁÂ

1.JPG (191.27 KB)

1.JPG

²¤Æª©_0529.zip (136.38 KB)

TOP

¦^´_ 5# samwang


   
³o­Ó¨S¿ìªk§@·~...
¨S¦³bug ¦ý¬OÁ`ªí¨S¦³¥Í¦¨

TOP

¦^´_ 3# waitto04

½Ð´ú¸Õ¬Ý¬Ý¡AÁÂÁÂ

Sub test()
Dim Arr, xD, T$, i&, j%
Set xD = CreateObject("Scripting.Dictionary")
For Each sh In Sheets
    If InStr(sh.Name, "±M®×") Then
        With sh
            Arr = .[a1].CurrentRegion
            For i = 5 To UBound(Arr)
                If Arr(i, 3) = "" Then GoTo 90
                T = sh.Name & "|" & Arr(i, 1)
                xD(T) = Arr(i, 3)
90:         Next
        End With
    End If
Next
With Sheets(1)
    [b5:f58] = ""
    Arr = .[a1].CurrentRegion
    For i = 5 To UBound(Arr): For j = 2 To UBound(Arr, 2)
        T = Arr(4, j) & "|" & Arr(i, 1)
        Arr(i, j) = xD(T)
    Next: Next
    .[a1].Resize(UBound(Arr), UBound(Arr, 2)) = Arr
End With
End Sub

TOP

¼g¥X¤F¥t¤@­Ó¥i¥H¾É¤Jªº
µ²ªGÅܦ¨¤FBÄæ³Q¸õ¹L¤F...´d¼@...

Sub test()

    ¤u§@ªí1.Activate
    Set i = ¤u§@ªí1.Range("C5:C58")
        For j = 2 To 7
        
           Range("B358").ClearContents
           Sheets(j).Range("B358").Copy Destination:=[b3]
        
               
            ¤u§@ªí7.Cells(4, j) = [c3]
            ¤u§@ªí7.Cells(5, j) = [c5]
            ¤u§@ªí7.Cells(6, j) = [c6]
            ¤u§@ªí7.Cells(7, j) = [c7]
            ¤u§@ªí7.Cells(8, j) = [c8]
            ¤u§@ªí7.Cells(9, j) = [c9]
            ¤u§@ªí7.Cells(10, j) = [c10]
            ¤u§@ªí7.Cells(11, j) = [c11]
            ¤u§@ªí7.Cells(12, j) = [c12]
            ¤u§@ªí7.Cells(13, j) = [c13]
            ¤u§@ªí7.Cells(14, j) = [c14]
            ¤u§@ªí7.Cells(15, j) = [c15]
            ¤u§@ªí7.Cells(16, j) = [c16]
            ¤u§@ªí7.Cells(17, j) = [c17]
            ¤u§@ªí7.Cells(18, j) = [c18]
            ¤u§@ªí7.Cells(19, j) = [c19]
            ¤u§@ªí7.Cells(20, j) = [c20]
            ¤u§@ªí7.Cells(21, j) = [c21]
            ¤u§@ªí7.Cells(22, j) = [c22]
            ¤u§@ªí7.Cells(23, j) = [c23]
            ¤u§@ªí7.Cells(24, j) = [c24]
            ¤u§@ªí7.Cells(25, j) = [c25]
            ¤u§@ªí7.Cells(26, j) = [c26]
            ¤u§@ªí7.Cells(27, j) = [c27]
            ¤u§@ªí7.Cells(28, j) = [c28]
            ¤u§@ªí7.Cells(29, j) = [c29]
            ¤u§@ªí7.Cells(30, j) = [c30]
            ¤u§@ªí7.Cells(31, j) = [c31]
            ¤u§@ªí7.Cells(32, j) = [c32]
            ¤u§@ªí7.Cells(33, j) = [c33]
            ¤u§@ªí7.Cells(34, j) = [c34]
            ¤u§@ªí7.Cells(35, j) = [c35]
            ¤u§@ªí7.Cells(36, j) = [c36]
            ¤u§@ªí7.Cells(37, j) = [c37]
            ¤u§@ªí7.Cells(38, j) = [c38]
            ¤u§@ªí7.Cells(39, j) = [c39]
            ¤u§@ªí7.Cells(40, j) = [c40]
            ¤u§@ªí7.Cells(41, j) = [c41]
            ¤u§@ªí7.Cells(42, j) = [c42]
            ¤u§@ªí7.Cells(43, j) = [c43]
            ¤u§@ªí7.Cells(44, j) = [c44]
            ¤u§@ªí7.Cells(45, j) = [c45]
            ¤u§@ªí7.Cells(46, j) = [c46]
            ¤u§@ªí7.Cells(47, j) = [c47]
            ¤u§@ªí7.Cells(48, j) = [c48]
            ¤u§@ªí7.Cells(49, j) = [c49]
            ¤u§@ªí7.Cells(50, j) = [c50]
            ¤u§@ªí7.Cells(51, j) = [c51]
            ¤u§@ªí7.Cells(52, j) = [c52]
            ¤u§@ªí7.Cells(53, j) = [c53]
            ¤u§@ªí7.Cells(54, j) = [c54]
            ¤u§@ªí7.Cells(55, j) = [c55]
            ¤u§@ªí7.Cells(56, j) = [c56]
            ¤u§@ªí7.Cells(57, j) = [c57]
            ¤u§@ªí7.Cells(58, j) = [c58]
        
    Next
   
    ¤u§@ªí7.Activate
   
    'Columns("B:B").Delete
   
   

End Sub

TOP

        ÀR«ä¦Û¦b : ¤@­Ó¤Hªº§Ö¼Ö¡D¤£¬O¦]¬°¥L¾Ö¦³±o¦h¡A¦Ó¬O¦]¬°¥L­p¸û±o¤Ö¡C
ªð¦^¦Cªí ¤W¤@¥DÃD