ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

³o­Ó°ÝÃDÀY¤j¤F..·Q¤F¦n¤[

³o­Ó°ÝÃDÀY¤j¤F..·Q¤F¦n¤[

§Ú¦b"²Î­p"³o­ÓSheet±Ò¥Î¥¨¶°
§â"¾Ç¥Í­¶"³o­ÓSheetªº¾Ç¥Í®y¸¹¡A¼´¨ì"²Î­p"³o­ÓSheet
¦ý¬O³£·|¥X²{"1004  À³¥Îµ{¦¡©Îª«¥ó©w¸q¤Wªº¿ù»~"

¦³ªþÀÉ®×
  1. Sub TEST()
  2. Dim Student()
  3. x = 1
  4. For Each y In Sheets("¾Ç¥Í­¶").Range(Cells(2, 1), Cells(Cells(Rows.Count, 1).End(xlUp).Row, 1))
  5. ReDim Student(x)
  6. Student(x) = y
  7. Sheets("²Î­p").Cells(x, 1) = Student(x)
  8. x = x + 1
  9. Next
  10. End Sub
½Æ»s¥N½X

¾Ç¥Í.rar (8.71 KB)

¾Ç¥Í

¦^´_ 9# lpk187


    ¼Ó¤W¤j¤j§¹¥þ¤F¸Ñ§Ú...§¹¥þ¥¿¸Ñ~¤Ó·PÁ§A¤F^.^

TOP

¦^´_ 1# EGBT

¸Õ¸Õ¬Ý³o­Ó¾A¤£¾A¦X
  1. Sub test1()
  2.     Dim student
  3.     Sheets("¾Ç¥Í­¶").Select
  4.     student = Range(Cells(2, 1), Cells(Cells(Rows.Count, 1).End(xlUp).Row, 1))
  5.     Sheets("²Î­p").Cells(2, 1).Resize(UBound(student)) = student
  6.    
  7. End Sub
½Æ»s¥N½X

TOP

¦^´_ 10# ikboy


·PÁÂ

TOP

¦^´_ 8# EGBT


    ¤@¯ë¨Ï¥Î°}¦C¤£À³¸ÓSheets("²Î­p").Cells(x, 1) = Student(x)³o¼Ë¤l¼g
³o¼Ë¼g¥u¬O®ö¶O¤F°}¦C°õ¦æ³t«×ªºÀuÂI
³Ì¦n¬O°j°é¶]§¹«á¦A¶K¨ìÀx¦s®æ
¦p¤U
  1. Sub TEST1()
  2. Dim Student()
  3. x = 0
  4. With Sheets("¾Ç¥Í­¶")
  5.     For Each y In .Range(.Cells(2, 1), .Cells(.Cells(Rows.Count, 1).End(xlUp).Row, 1))
  6.         ReDim Preserve Student(x)
  7.         Student(x) = y
  8.         x = x + 1
  9.     Next
  10. End With
  11. Sheets("²Î­p").Cells(1, 1).Resize(UBound(Student) + 1) = Application.Transpose(Student)
  12. End Sub
½Æ»s¥N½X

TOP

¦^´_ 8# EGBT


     °ÊºA°}¦C Redim Student(x)³o¼Ë¼g®É¡A·í­«·s¤@¦¸ªºRedim®É·|§â­ì¨Ó¦b°}¦Cªº­È²MªÅ
©Ò¥H·íµM¨S­Èµ¹¥¦Åã¥Ü°Ú°j°é¤¤ªº­«·s©wºû¼Æ¤S¤£§Æ±æ²MªÅ­È¥²¶·¼g¦¨
ReDim Preserve Student(x)

TOP

­º¥ý§Aªº°ÊºA°}¦C­n«O¯d¼Æ¾Ú,½Ð¥Î Redim Preserve Student(x)
¤U­±°µ¤F¤@­Ó¨Ò¤l

Sub TEST()
Dim Student()
r = Sheets("¾Ç¥Í­¶").Cells(Rows.Count, 1).End(xlUp).Row
x = 1
For Each y In Sheets("¾Ç¥Í­¶").Range("a2:a" & r)
ReDim Preserve Student(x)
Student(x) = y
Sheets("²Î­p").Cells(x, 1) = Student(x)
x = x + 1
Next
MsgBox Student(1)
MsgBox Student(11)
End Sub

TOP

¥»©«³Ì«á¥Ñ lpk187 ©ó 2015-8-22 14:18 ½s¿è

¦^´_ 5# EGBT

·í§A§@¥Î¤¤ªº¤u§@ªí¬°Sheets("¾Ç¥Í­¶")®É¡A§A¬O¥i¥H¼g
Sheets("¾Ç¥Í­¶").Range(Cells(2, 1), Cells(Cells(Rows.Count, 1).End(xlUp).Row, 1))
¦ý¬O¦pªG§@¥Î¤¤ªº¤u§@ªí¤£¬OSheets("¾Ç¥Í­¶")®É¡A¨º³o¥y¥¿½T¼gªk
Sheets("¾Ç¥Í­¶").Range(Sheets("¾Ç¥Í­¶").Cells(2, 1), Sheets("¾Ç¥Í­¶").Cells(Sheets("¾Ç¥Í­¶").Cells(Rows.Count, 1).End(xlUp).Row, 1))
¬Ý¥X­þ¸Ì¤£¦P¤F¶Ü¡H
¨C¤@­ÓÀx¦s®æÀ³¸Óµ¹¤©§¹¾ãªº¦a§}

TOP

¦^´_ 6# ikboy


    «Ü·PÁ¼ӤW¤j¤jªº¦^ÂÐ~¥i¬O§Ú·Q½Ð°Ý¤j¤j

°ÊºA°}¦C Redim Student(x)

§Ú³Ì«áÀH«K¼g¤@¦æ

Sheets("²Î­p").Range("A1") = Student(1)

¬°¤°»ò¤£·|§âSudent(1)³o­Ó°}¦Cªº®y¸¹Åã¥Ü¦bA1©O?

TOP

¥»©«³Ì«á¥Ñ n7822123 ©ó 2015-8-22 13:59 ½s¿è

¦^´_ 5# EGBT


    ¦pªG¬O§Ú¡A§Ú·|³o»ò¼g
  1. Sub TEST()
  2. R = Sheets("¾Ç¥Í­¶").Cells(1, 1).CurrentRegion.Rows.Count
  3. For i = 1 To R
  4.   Sheets("²Î­p").Cells(i, 1) = Sheets("¾Ç¥Í­¶").Cells(i + 1, 1)
  5. Next i
  6. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ­×¦æ­nô½t­×¤ß¡AÂǨƽm¤ß¡AÀH³B¾i¤ß¡C
ªð¦^¦Cªí ¤W¤@¥DÃD