¤£¥Î°j°é¡A¤£¥ÎWorksheet¨ç¼Æ¡]matchµ¥¡^¡A§PÂ_¬Yelement¦b¬O§_°}¦C¤¤
- ©«¤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
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2013-7-1 10:02 ½s¿è
¦^´_ 3# sunnyso
§PÂ_§¹¥þµ¥©ó¸Óelement¦b°}¦C¤¤¦ì¸m- Sub Ex()
- Dim S As String, alltype(), Aj As String, Ar As String
- S = "," '»²§U¦r¦ê
- alltype = Array("AÃþ", "BÃþ", "DECÃþ", "ECÃþ", "CÃþ", "FÃþ", "GÃþ", "HÃþ", "IÃþ", "JÃþ")
- Aj = S & "CÃþ" & S
- Ar = S & Join(alltype, S) & S
- If InStr(Ar, Aj) = 0 Then
- Debug.Print "Empty"
- Else
- Ar = Split(Ar, Aj)(0)
- Debug.Print IIf(UBound(Split(Ar, S)) < 0, 0, UBound(Split(Ar, S)))
- End If
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤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
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2013-7-1 10:09 ½s¿è
¦^´_ 5# sunnyso
ÁÂÁ«ü¥¿¦³¿ù·í§ï , 4#¤w×¥¿.
¥i¬O¦p³o¼ËÁÙ¬O¦³bug §ä¨ì "JJÃþ"- Sub ss_teswt()
- alltype = Array("AÃþ", "BÃþ", "CÃþ", "DÃþ", "JJÃþ", "FÃþ", "GÃþ", "HÃþ", "IÃþ", "JÃþ")
- Aj = "JÃþ"
- If UBound(Filter(alltype, Aj)) < 0 Then
- Debug.Print "Empty"
- Else
- Debug.Print UBound(Split(Split(" " & Join(alltype, "|"), Aj)(0), "|"))
- End If
- 'Stop
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|