¤£¥Î°j°é¡A¤£¥ÎWorksheet¨ç¼Æ¡]matchµ¥¡^¡A§PÂ_¬Yelement¦b¬O§_°}¦C¤¤
- ©«¤l
- 605
- ¥DÃD
- 92
- ºëµØ
- 0
- ¿n¤À
- 648
- ÂI¦W
- 0
- §@·~¨t²Î
- windows
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- macau
- µù¥U®É¶¡
- 2013-4-5
- ³Ì«áµn¿ý
- 2019-2-10
|
¤£¥Î°j°é¡A¤£¥ÎWorksheet¨ç¼Æ¡]matchµ¥¡^¡A§PÂ_¬Yelement¦b¬O§_°}¦C¤¤
¨Ò¦p- Sub ss_test1()
- alltype = Array("AÃþ", "BÃþ", "CÃþ", "DÃþ", "EÃþ", "FÃþ", "GÃþ", "HÃþ", "IÃþ", "JÃþ")
- aj = "1DÃþ"
- If UBound(Filter(alltype, aj)) < 0 Then Debug.Print "Empty"
- Stop
- End Sub
½Æ»s¥N½X |
|
ss
|
|
|
|
|
- ©«¤l
- 605
- ¥DÃD
- 92
- ºëµØ
- 0
- ¿n¤À
- 648
- ÂI¦W
- 0
- §@·~¨t²Î
- windows
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- macau
- µù¥U®É¶¡
- 2013-4-5
- ³Ì«áµn¿ý
- 2019-2-10
|
¦^´_ 1# sunnyso
§PÂ_¸Óelement¦b°}¦C¤¤¦ì¸m
Debug.Print UBound(Split(Split(Join(alltype, "|"), aj)(0), "|")) + 1- If UBound(Filter(alltype, aj)) < 0 Then
- Debug.Print "Empty"
- Else
- Debug.Print UBound(Split(Split(Join(alltype, "|"), aj)(0), "|")) + 1
- End If
½Æ»s¥N½X |
|
ss
|
|
|
|
|
- ©«¤l
- 605
- ¥DÃD
- 92
- ºëµØ
- 0
- ¿n¤À
- 648
- ÂI¦W
- 0
- §@·~¨t²Î
- windows
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- macau
- µù¥U®É¶¡
- 2013-4-5
- ³Ì«áµn¿ý
- 2019-2-10
|
¦^´_ sunnyso
§PÂ_¸Óelement¦b°}¦C¤¤¦ì¸m
Debug.Print UBound(Split(Split(Join(alltype, "|"), aj)( ...
sunnyso µoªí©ó 2013-6-30 23:11
¼Ó¤W¦³bug¡A§ï爲- If UBound(Filter(alltype, aj)) < 0 Then
- Debug.Print "Empty"
- Else
- Debug.Print UBound(Split(Split(¡§ ¡¨ & Join(alltype, "|"), aj)(0), "|"))
- End If
½Æ»s¥N½X |
|
ss
|
|
|
|
|
- ©«¤l
- 605
- ¥DÃD
- 92
- ºëµØ
- 0
- ¿n¤À
- 648
- ÂI¦W
- 0
- §@·~¨t²Î
- windows
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- macau
- µù¥U®É¶¡
- 2013-4-5
- ³Ì«áµn¿ý
- 2019-2-10
|
¥»©«³Ì«á¥Ñ sunnyso ©ó 2013-7-1 09:41 ½s¿è
¦^´_ 4# GBKEE
ª©¤j§Aªºcode¦³bug¡A¸ò§Ú²Ä¤@¦¸ªºcode¡]2¼Ó¡^¤@¼Ëªºbug¡C´N¬O²Ä¤@element¡]§Y: "AÃþ") ¦^¶Ç -1
À³¸Ó¹³§Ú3¼Óªº§ï°Ê¡]©ÎªÌ¬Ý§Ú¥t¤@©«¤l¡^¤~¥i¥H¡A¦bJoin «áªº AllType«e±¥[¤W¤@Ó¥ô·N«D S¡]»²§U¦r¦ê¡^ªº¦r¦ê¡A¨Ò¦p¡§<space>", ¤£µM²Ä¤@Óemement·|¦^¶Ç-1¡A ÁÙ¦³¦bJoin «áªº AllType«á±¨Ã¤£»Ýn¦ê»²§U¦r¦ê
§ï°Ê«á¦p¤U- Sub ss_teswt()
- alltype = Array("AÃþ", "BÃþ", "CÃþ", "DÃþ", "EÃþ", "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 |
|
ss
|
|
|
|
|
- ©«¤l
- 605
- ¥DÃD
- 92
- ºëµØ
- 0
- ¿n¤À
- 648
- ÂI¦W
- 0
- §@·~¨t²Î
- windows
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- macau
- µù¥U®É¶¡
- 2013-4-5
- ³Ì«áµn¿ý
- 2019-2-10
|
¦^´_ 6# GBKEE
ªº½T¡A¦A·Q·Q¦³¨S¦³§ó¦nªº¤èªk |
|
ss
|
|
|
|
|
- ©«¤l
- 605
- ¥DÃD
- 92
- ºëµØ
- 0
- ¿n¤À
- 648
- ÂI¦W
- 0
- §@·~¨t²Î
- windows
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- macau
- µù¥U®É¶¡
- 2013-4-5
- ³Ì«áµn¿ý
- 2019-2-10
|
¦^´_ 4# GBKEE
³o¼Ë¥i¥H¤Ö¤@IF§PÂ_- Sub Ex()
- Dim S As String, alltype(), Aj As String, Ar As String
- S = "," '»²§U¦r¦ê
- alltype = Array("DAÃþ", "BÃþ", "DECÃþ", "ECÃþ", "CÃþ", "FÃþ", "GÃþ", "HÃþ", "IÃþ", "JÃþ")
- Aj = S & "DAÃþ" & S
- Ar = " " & S & Join(alltype, S)
- If InStr(Ar, Aj) = 0 Then
- Debug.Print "Empty"
- Else
- Ar = Split(Ar, Aj)(0)
- Debug.Print UBound(Split(Ar, S))
- End If
- End Sub
½Æ»s¥N½X |
-
1
µû¤À¤H¼Æ
-
|
ss
|
|
|
|
|
- ©«¤l
- 605
- ¥DÃD
- 92
- ºëµØ
- 0
- ¿n¤À
- 648
- ÂI¦W
- 0
- §@·~¨t²Î
- windows
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- macau
- µù¥U®É¶¡
- 2013-4-5
- ³Ì«áµn¿ý
- 2019-2-10
|
¦^´_ 9# GBKEE
6¼Óªºcode¾A¦X¥HÃöÁä¦r¨Ó§PÂ_elementªº¦ì¸m |
|
ss
|
|
|
|
|