- ©«¤l
- 976
- ¥DÃD
- 7
- ºëµØ
- 0
- ¿n¤À
- 1018
- ÂI¦W
- 0
- §@·~¨t²Î
- Win10
- ³nÅ骩¥»
- Office 2016
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-4-19
- ³Ì«áµn¿ý
- 2024-10-30
|
¦U¦ì¤j¤j¥i¥H±NA1Àx¦sÓ¤º®e¡A¨Ï¥ÎVBA©î¤À¨ì¹ïÀ³ªº¦WºÙ¨Ì§Ç©¹¤U±Æ¶Ü?
wsx1130 µoªí©ó 2022-7-23 22:54
½Ð´ú¸Õ¬Ý¬Ý¡AÁÂÁÂ
Sub test()
Dim Arr, Brr(1 To 50000, 1 To 12), Crr, a, i&, j%
Arr = [a1]: Crr = [c1:n1]
a = Split(Arr, Chr(10))
For i = 0 To UBound(a)
For j = 1 To UBound(Crr, 2)
If a(i) = "" Then Exit For
If j = 7 Then Brr(i + 1, j) = Replace((Split(Split(a(i), Crr(1, j))(1), "T")(0)), " ", ""): GoTo 99
If j = 11 Then Brr(i + 1, j) = Replace((Split(Split(a(i), Crr(1, j))(1), "E")(0)), " ", ""): GoTo 99
If j = 12 Then Brr(i + 1, j) = "END": GoTo 99
Brr(i + 1, j) = Replace((Split(Split(a(i), Crr(1, j))(1), "[")(0)), " ", "")
99: Next j
Next i
[c2].Resize(UBound(a) + 1, 12) = Brr
End Sub |
|