- ©«¤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
|
¦^´_ 23# c_c_lai
§ä¤£¥X§Aªº¿ù»~- Option Explicit
- Sub Ex() 'Split¦b¦r¦ê¤¤¥H«ü©wªº¦r¤¸§@¤À³Î¶Ç¦^¤@ºû°}¦C
- Dim A As String, W, xi As Integer, i As Integer
- A = "1ABCD2ABCD3ABCD4ABCD"
- ' (For 5 to 6)
- For i = 0 To 4 ' <--- ¥¿½TÀ³¬° For i = 0 To 3
- W = Split("1ABCD2ABCD3ABCD4ABCD", Mid(A, 5, i)) ' '-> 'D'
- MsgBox "¤À³Î¦r¦ê """ & Mid(A, 5, i) & """°}¦C¤Wºû«× " & UBound(W) & " ³Ì«á¤@ºû¦r¦ê: " & W(UBound(W)) '-> 1ABC,2ABC,3ABC,4ABC)
- Next
- End Sub
½Æ»s¥N½X ¦^´_ 20# HSIEN6001
Split(¦r¦ê,¤À³Î¦r¤¸)(1)--->³oÓ(1)¬O?·N«ä
18#¦³¥Ü½dªºµ{¦¡- Sub Ex_Split() 'Split(¦r¦ê,¤À³Î¦r¤¸)(1)--->³oÓ(1)¬O?·N«ä
- Dim A As String, W, xi As Integer, i As Integer
- A = "1ABCD2ABCD3ABCD4ABCD"
- W = Split(A, "B")
- For i = 0 To UBound(W)
- MsgBox "W(" & i & ") -> " & W(i)
- Next
- End Sub
½Æ»s¥N½X À£ÁYÀɤº¦³¨âÓ¤U¸ü,¤@Ó¬ONG,¤@ÓOK
21#c_c_lai ¤£¬O»¡
²Ä¤@¦¸¤@©w¬O OK ªº¡A¦]¬°¦b D:\ ¤º ¥«.csv¡BÂd.csv ¨Ã¤£¦s¦b¡A«ö²Ä¤G¦¸®É¡A
©p¤S¦A¦¸¨Ï¥Î .SaveToFile (Apath & "¥«.csv") ¥H¤Î .SaveToFile (Apath & "Âd.csv")
©Ò¥H´N·|¥X¿ù¤F¡C- Sub Ex()
- Dim xml As New XMLHTTP
- Dim stream As New ADODB.stream
- Dim strURL As String
- Dim x As String, y As String
- Dim Apath As String, ApathFile As String
- Apath = "D:\"
- If Dir(Apath & "¥«.csv") <> "" Then Kill Apath & "¥«.csv" '¥[¤W¦³«h§R°£ªº§PÂ_
- If Dir(Apath & "Âd.csv") <> "" Then Kill Apath & "Âd.csv"
½Æ»s¥N½X |
|