match ·j´M¤£¦P¤u§@ªí¥i¥H«ü©wÅܼƶÜ?
- ©«¤l
- 127
- ¥DÃD
- 38
- ºëµØ
- 0
- ¿n¤À
- 166
- ÂI¦W
- 0
- §@·~¨t²Î
- Microsoft
- ³nÅ骩¥»
- Windows 7
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-7-31
- ³Ì«áµn¿ý
- 2018-8-3
|
¦^´_ 18# GBKEE
§Ú·Qn½Ð°Ý¤j¤j,- Dim ¼ÆȪí As Variant, °}¦Cªí As Variant, E As Variant, EE As Variant
- Dim Ar(), Ar1(1 To 2), Ar2(), i As Integer, M As Variant
- '°²³]x1¬°1~nÓsheet (¦ý¤£ª¾¹D¦³´XÓsheet),¥Ñ¤U±µ{¦¡½X¨ú±o
- For Each E In Sheets
- If E.Name Like "¼ÆÈ*" Then ¼ÆȪí = ¼ÆȪí & "," & E.Name '¦r¦ê:¶°¦X¼ÆȪí
- If E.Name Like "°}¦C*" Then °}¦Cªí = °}¦Cªí & "," & E.Name '¦r¦ê:¶°¦X°}¦Cªí
- Next
- '*******************************************
- ¼ÆȪí = Split(Mid(¼ÆȪí, 2), ",") '°}¦C: ¦r¦ê¥H","¤À³Î¬°°}¦C
- °}¦Cªí = Split(Mid(°}¦Cªí, 2), ",")
- ReDim Ar2(0) '«¸m°}¦C
- For Each E In Sheets(¼ÆȪí) '¤u§@ªí°}¦C(¼ÆȪí)
½Æ»s¥N½X ¤W±ªº¡uDim ¼ÆȪí As Variant¡v¥L¤£¬O¥u¬O±N¡u¼ÆȪí¡v«Å§i¦¨Variant
¬°¤°»ò¦b¤U¤è¡uIf E.Name Like "¼ÆÈ*" Then ¼ÆȪí = ¼ÆȪí & "," & E.Name¡v¡A³o·Pı¦³ÂI¹³§â¬Û¦ü¡u¼ÆÈ¡vªºSheet©ñ¤J¨ì¼ÆȪí¸Ì±¡A¤£¬O°}¦C¤]¥i¥H³o»ò°µ¶Ü?
ÁÙ¦³¤U¤èªº¡uFor Each E In Sheets(¼ÆȪí)¡v±N¼ÆȪí©ñ¨ì¡uE¡v¸Ì±..¼ÆÈªí¥¦¤£¬O¥u¬O´¶³qªºÅܼƶÜ? «ç»ò¥i¥H§â¥¦Åܦ¨¹³¬O°}¦C©O?
§Ú¬Oı±o...Ãþ¦üSheets(¼ÆÈ(S)) <- ¬O©ñ¡u¼ÆÈ(S)¡v°}¦C¡A±N°}¦C©ñ¨ìE...
³Â·Ð¤j¤j¶}¥Ü |
|
|
|
|
|
|
- ©«¤l
- 127
- ¥DÃD
- 38
- ºëµØ
- 0
- ¿n¤À
- 166
- ÂI¦W
- 0
- §@·~¨t²Î
- Microsoft
- ³nÅ骩¥»
- Windows 7
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-7-31
- ³Ì«áµn¿ý
- 2018-8-3
|
¦^´_ 18# GBKEE
¤Ñ°Ú..¯«¤H¤@ªT!!!
¤p§Ì¡@Orz...
²`«ä¤¤!! |
|
|
|
|
|
|
- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 17# EGBT
¸Õ¸Õ¬Ý §AªºªþÀɵ{¦¡½X- Option Explicit
- Sub Ex()
- Dim ¼ÆȪí As Variant, °}¦Cªí As Variant, E As Variant, EE As Variant
- Dim Ar(), Ar1(1 To 2), Ar2(), i As Integer, M As Variant
- '°²³]x1¬°1~nÓsheet (¦ý¤£ª¾¹D¦³´XÓsheet),¥Ñ¤U±µ{¦¡½X¨ú±o
- For Each E In Sheets
- If E.Name Like "¼ÆÈ*" Then ¼ÆȪí = ¼ÆȪí & "," & E.Name '¦r¦ê:¶°¦X¼ÆȪí
- If E.Name Like "°}¦C*" Then °}¦Cªí = °}¦Cªí & "," & E.Name '¦r¦ê:¶°¦X°}¦Cªí
- Next
- '*******************************************
- ¼ÆȪí = Split(Mid(¼ÆȪí, 2), ",") '°}¦C: ¦r¦ê¥H","¤À³Î¬°°}¦C
- °}¦Cªí = Split(Mid(°}¦Cªí, 2), ",")
- ReDim Ar2(0) '«¸m°}¦C
- For Each E In Sheets(¼ÆȪí) '¤u§@ªí°}¦C(¼ÆȪí)
- '¨C¤@¼ÆȪí
- Ar = E.Range("A:A").SpecialCells(xlCellTypeConstants).Value '¼Æȸê®Æ¸m¤J°}¦C
- Ar = Application.WorksheetFunction.Transpose(Ar) '°}¦C:¤Gºû(¾î)Âà¤@ºû(ª½)
- For Each EE In Sheets(°}¦Cªí) '¤u§@ªí°}¦C(°}¦Cªí)
- '¨C¤@°}¦Cªí
- For i = 1 To UBound(Ar) '¼Æȸê®Æ°}¦C
- M = Application.Match(Ar(i), EE.Range("A:A"), 0) '¨C¤@°}¦Cªí¤¤Match¼ÆÈ
- Ar1(1) = E.Name & " -" & Ar(i)
- If IsError(M) Then
- Ar1(2) = EE.Name & " - §ä¤£¨ì"
- Else
- Ar1(2) = EE.Name & " -A" & M
- End If
- Ar2(UBound(Ar2)) = Ar1
- ReDim Preserve Ar2(UBound(Ar2) + 1) '°}¦C«¸m¤¸¯À¯Á¤ÞÈ,Preserve(«O¯d즳¤¸¯À)
- Next
- Next
- Next
- ReDim Preserve Ar2(UBound(Ar2) - 1) '°}¦CÂà¸m®É¦p¤l¤¸¯À¦³¬°°}¦C,¨ä¥L¤l¤¸¯À¶·¬°¬Û¦P¤j¤pªº°}¦C
- Sheets("µ²ªG").Range("A1").Resize(UBound(Ar2) - 1, 2) = Application.Transpose(Application.Transpose(Ar2))
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤l
- 127
- ¥DÃD
- 38
- ºëµØ
- 0
- ¿n¤À
- 166
- ÂI¦W
- 0
- §@·~¨t²Î
- Microsoft
- ³nÅ骩¥»
- Windows 7
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-7-31
- ³Ì«áµn¿ý
- 2018-8-3
|
¦^´_ 15# GBKEE
GBKEE¤j¤j±z¦n
§ÚªºMATCH°ÝÃD¦p¤U..(ÁöµM«Ü¦h¤j¤j³£¦³¦^µª¦ýÁÙ¬O¤£¤Ó¯à°÷Åý§Ú²z¸Ñ><)
°²³]x1¬°1~nÓsheet (¦ý¤£ª¾¹D¦³´XÓsheet),¨CÓsheet¸Ì±³£¦³¤£³W«h¼ÆÈ,³o¸Ì´N¬O©ñ¦bMatchªº¼ÆÈ
°²³]y1¬°1~nÓsheet (¦ý¤£ª¾¹D¦³´XÓsheet),¨CÓsheet¸Ì±³£¦³¤£³W«hªº°}¦C¼Æ,³o¸Ì´N¬O©ñ¦bMatchªº°}¦C
§Ú¥Î²ÊÁWªº¤èªk¥hpºâ¦³´XÓx1©M¸Ì±ªº¼ÆÈ¥H¤Îpºây1©M¸Ì±ªº°}¦C¼Æ
³o¼Ë¤£ª¾¹DMatch...ªþ¤WÀɮצn¹³¤]»¡¤£¤Ó©ú¥Õ |
|
|
|
|
|
|
- ©«¤l
- 262
- ¥DÃD
- 8
- ºëµØ
- 0
- ¿n¤À
- 280
- ÂI¦W
- 17
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- HK
- µù¥U®É¶¡
- 2015-8-11
- ³Ì«áµn¿ý
- 2024-11-19
|
¦hÁÂGBKEEª©¥D«ü±Ð, À´¤F¡C |
|
|
|
|
|
|
- ©«¤l
- 127
- ¥DÃD
- 38
- ºëµØ
- 0
- ¿n¤À
- 166
- ÂI¦W
- 0
- §@·~¨t²Î
- Microsoft
- ³nÅ骩¥»
- Windows 7
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-7-31
- ³Ì«áµn¿ý
- 2018-8-3
|
¦^´_ 12# ikboy
¤Ñ°Ú,«Ü·PÁ§Aªº¦^µª~! |
|
|
|
|
|
|
- ©«¤l
- 262
- ¥DÃD
- 8
- ºëµØ
- 0
- ¿n¤À
- 280
- ÂI¦W
- 17
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- HK
- µù¥U®É¶¡
- 2015-8-11
- ³Ì«áµn¿ý
- 2024-11-19
|
¥´Application.WorkSheetFunction.Match...¸ò¥´Application.Match...¦³¤°»ò¤£¤@¼Ë?
¤S¬O²¼g |
|
|
|
|
|
|
- ©«¤l
- 262
- ¥DÃD
- 8
- ºëµØ
- 0
- ¿n¤À
- 280
- ÂI¦W
- 17
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- HK
- µù¥U®É¶¡
- 2015-8-11
- ³Ì«áµn¿ý
- 2024-11-19
|
²¼gªº±`¼Æ¤Gºû°}¦C, §Y = Application.Transpose(Application.Transpose(Array(Array("¼ÆÈ1","°}¦C1"), Array("¼ÆÈ2","°}¦C2"), Array("¼ÆÈ3","°}¦C3")))) |
|
|
|
|
|
|
- ©«¤l
- 127
- ¥DÃD
- 38
- ºëµØ
- 0
- ¿n¤À
- 166
- ÂI¦W
- 0
- §@·~¨t²Î
- Microsoft
- ³nÅ骩¥»
- Windows 7
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-7-31
- ³Ì«áµn¿ý
- 2018-8-3
|
¦^´_ 8# ikboy
ÁÙ¦³¤@Ó°ÝÃD¬O
¥´Application.WorkSheetFunction.Match...¸ò¥´Application.Match...¦³¤°»ò¤£¤@¼Ë? |
|
|
|
|
|
|