- ©«¤l
- 552
- ¥DÃD
- 3
- ºëµØ
- 0
- ¿n¤À
- 578
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-2-8
- ³Ì«áµn¿ý
- 2024-7-9
|
¦^´_ 3# EGBT
§Ú¥Î¤@Ó²³æªº¨Ò¤l»¡©ú¡G
¥H¤U¦Cµ{¦¡½X¨Ó»¡¡Aµ{¦¡Åª¨ú±qA1¨ìAÄ檺³Ì«á¤@®æ°µ¬°µ{¦¡³B²zªº½d³ò¡A¦ý§Ú¤£ª¾¥¦³Ì«á·|¸¨¦bþ¸Ì¡A
³o®É´N¥i¥H§Q¥ÎReDim¤F¡AÅý¥¦¤@Ó¤@Ó²Ö¥[¨ì³Ì®æ³B²zªºÀx¦s®æ¡A¦ý³o¸Ìnª`·Nªº¨Æ¬OReDim¥u¯à¼W¥[³Ì«á¤@ºûªººû«×
¨Ò¦pReDim arr(1 to 3,1 to n)¥u¯à¼W¥[¬õ¦r³¡¥÷ªººû«×
YReDim«á±¨S¦³¥[¤WPreserve«h¨C¦¸¼W¥[ºû«×«á¥²·|§R°£ì¨Ó°}¦Cªº¤º®e¡A©Ò¥H¥H¤U¦Cµ{¦¡¨Ó»¡¬°¤F¤£§R°£¨ä°}¦C¤¤ªº¤º®e
¬G¼g¬° ReDim Preserve ar(n)- Sub Ex()
- Dim ar()
- n = 1
- For Each Rng In Range("a1", Cells(Rows.Count, 1).End(xlUp).Address)
- ReDim Preserve ar(n)
- ar(n) = Rng
- n = n + 1
- Next
- [C1].Resize(UBound(ar)) = Application.Transpose(ar)
- End Sub
½Æ»s¥N½X |
|