- ©«¤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 ©ó 2012-6-26 10:08 ½s¿è
¦^´_ 6# lasum
Sub Macro1()
On Error Resume Next '¼W¥[µ{¦¡ '<- ³o¤£¬O¸Ñ¨M¤§¹D : ¦pµ{¦¡¤¤ÁÙ¦³¿ù»~¬O·|§ä¤£¥X¨Óªº
t = [a1] < ..°ÝÃD¬O³o¦r¦ê¤¤ ¦p¨S¦³ ªÅ®æªº¦r¦ê
sp = Split(t, " ") <-³o¸Ìªº°}¦C¤W¤¸¯Àªº¯Á¤ÞÈ ¥u¦³ 0
p1 = Split(sp(0), ",")
p2 = Split(sp(1), ",") <- ³o¥²µM·|¥X²{ °}¦C¯Á¤Þ¶W¥X½d³ò ¿ù»~ 9- Sub Ex()
- Dim A, AR, xi As Integer
- A = "A111,222,333,444" '³o¸ÌªºA¦r¦ê ®M¨ì oobird ¶Wª©ªºµ{¦¡ ·|¥X¿ù
- 'A = "A111,222,333,444 Baa,bbb,ccc,ddd C11,222,333,444 Daa,bbb,ccc,ddd"
- '¤W±ªº A¦r¦ê ®M¨ì oobird ¶Wª©ªºµ{¦¡ OKªº
- AR = Split(A, " ")
- For xi = 0 To UBound(AR) 'UBound ¶Ç¦^ °}¦Cªº¤W¤¸¯Àªº¯Á¤ÞÈ
- A = Split(AR(xi), ",")
- [a1].Offset(xi).Resize(, UBound(A) + 1) = A
- [G1].Offset(, xi).Resize(UBound(A) + 1) = Application.Transpose(A)
- 'Transpose ¤u§@ªí¨ç¼Æ :Âà¸m
- Next
- End Sub
½Æ»s¥N½X |
|