vba ¦¹³B»Ýnª«¥ó (¿ù»~ 424) ¨D¸Ñ
- ©«¤l
- 1
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 12
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- 2010
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2016-8-31
- ³Ì«áµn¿ý
- 2018-10-2
|
vba ¦¹³B»Ýnª«¥ó (¿ù»~ 424) ¨D¸Ñ
¸Ó¦p¦óקïµ{¦¡½X©O
µ{¦¡½X¦p¤U©Ò¥Ü
¤Q¤À·PÁÂ
¦b°»¿ù¿ù»~¤¤ ¶]¨ì²Ä¤T¦æ´N·| ¸õ¥X ¿ù»~424 ><
Sub test()
ReDim arr(1 To 10000, 1 To 4)
brr = Sheet1.[a1].CurrentRegion
For i = 2 To UBound(brr)
If Len(brr(i, 5)) Then
For s = 1 To brr(i, 5)
n = n + 1
For j = 1 To UBound(brr, 2) - 1
arr(n, j) = brr(i, j)
Next j
Next s
End If
Next i
Sheet2.[a1].CurrentRegion.Offset(1).ClearContents
Sheet2.[a2].Resize(n, 4) = arr
End Sub |
|
|
|
|
|
|
¡@¼ÊºÙ: 温©_ ¡@ÀY»Î: ij½×ªÌ
¤¤¾Ç¥Í
- ©«¤l
- 104
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 110
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- Office2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2017-11-14
- ³Ì«áµn¿ý
- 2019-4-30
|
¦^´_ 1# mickeygo
ÅÞ¿è°ÝÃD¡A
ReDim arr(1 To 10000, 1 To 4)
brr = Sheet1.[a1].CurrentRegion
For i = 2 To UBound(brr)
2¼Ó¶Wª©¤w¸g§i¶D§A¿ù¦b³o¡A
brr = ¤u§@ªí1.[a1].CurrentRegion
§ApºâªºÈÀ³¸Ó¦³¤p©ó2ªº
¦pªGUBound(brr)=1
¨ºÓFor i = 2 To 1?
½Ð°Ý2«ç»ò¨ì1?
For°j°é¥u¯à»¼¼W¡A»¼´î´N¥X¿ù¡C
¦A¥hºô¸ô¤W¬d¤@¤UFor°j°éªºÄÝ©ÊÃö«Y¡A
°ÝÃD¸Ñ¨M°O±o¦^ÂЧiª¾¡A¬O¤@ºØ§»ª¤]¬OºØºA«×¡C |
|
¤@¤À§V¤O¡A¤@¤À¦¬Ã¬¡C
µo°ÝÃD«e¥i¥H¥ý·j¯Á¤º¤å¬O§_¦³¬ÛÃö½d¨Ò¡C
|
|
|
|
|