¤£¥Î°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
|
|
|
|
|
¡@¼ÊºÙ: ªü¦õ ¡@ÀY»Î: ¤W¯ZµL²á¥´©Ç¥h
¤¤¾Ç¥Í
- ©«¤l
- 108
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 113
- ÂI¦W
- 0
- §@·~¨t²Î
- Win 10
- ³nÅ骩¥»
- Office 2016
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- »OÆW
- µù¥U®É¶¡
- 2017-9-7
- ³Ì«áµn¿ý
- 2019-2-27
|
¦^´_ 8# sunnyso
ÁöµM³oÓ°Q½×¦ê¾ú¥v¤w¤[¡A(4¦~«e...
¦ý¤´µM¹ï§Ú¦³«Ü¤jªºÀ°§U¡A
ÁÂÁ¦U¦ì¥ý¶iªºÀ°§U¡I
¦ý 05. ¤¤ ¡uAj = S & "DAÃþ" & S¡v¦³ÂI¤pºÃ°Ý¡A
Y¦¹®É·j´M¹ï¶HÅܦ¨JÃþªº®ÉÔ¡A
«K·|µLªk§ä¨ì¡A
ì¦]¦b©ó¡A
Aj ¸g 05. ³B²z«á¡AÅܦ¨¡u,JÃþ,¡v
¦ý Ar ¦r¦ê¦b 06. ³B²z«á¡AÅܦ¨¡u ,DAÃþ,BÃþ,DECÃþ,ECÃþ,CÃþ,FÃþ,GÃþ,HÃþ,IÃþ,JÃþ¡v
¦¹®É¥ÎInStr(Ar, Aj)¡Aµ´¹ï·|µ¥©ó 0
¸Õ°Ý¡A
05. ¤¤¡A«á±ªº&S쥻¥ß·N¬°¦ó¡H
¬O¤£¬O§Q¥Î¨âÓ","¨Ó¨M©w¦r¦êªºÀY»P§À¡H
Y¬O¦p¦¹¡A¦pªG¦b¡uAr = " " & S & Join(alltype, S)¡v«á±°l¥[ & S¡A·|§ó§¹¬ü¡H:P
³Ì«á¡AÁÙ¬O·PÁ¦U¦ì¤j¤j¡A
©~µM¥i¥H¬¡¥ÎJoin¦A°t¦XInStr¹F¨ì§P©w¬O§_¦s¦bªº¥Øªº¡A
³Ì«á¦A³sÄò§Q¥ÎSplit¨Ã°t¦XUBound¨Ó«ü¥X¸Ó¶µ¥Øªº¦ì¸m¡A
¹ê¦b¼F®`¡IXD |
|
|
|
|
|
|
- ©«¤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
|
|
|
|
|
- ©«¤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
|
¦^´_ 6# GBKEE
ªº½T¡A¦A·Q·Q¦³¨S¦³§ó¦nªº¤èªk |
|
ss
|
|
|
|
|
- ©«¤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 |
|
|
|
|
|
|
- ©«¤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
- 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
- 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
|
|
|
|
|