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

[µo°Ý] [µo°Ý]¦p¦ó±N¤@­Ó°}¦C¤À¦¨¨â¬q¿é¥X©O

[µo°Ý] [µo°Ý]¦p¦ó±N¤@­Ó°}¦C¤À¦¨¨â¬q¿é¥X©O

½Ð°Ý §Ú·Q§â¤@­Ó°}¦C ¤À§O©ñ¦b¨â­Ó½d³ò ³o¼Ëªº¼gªk ½TÅý¨â­Ó½d³òªº¸ê®Æ³£¬O¤@¼Ëªº ½Ð°Ý«ç»ò¼g¤~¬O¹ïªº©O

·Q§â nameitem(31,1)  ¨ì nameitem(60,9) ±o¸ê®Æ©ñ¨ì Range("M7:U36")

Dim nameitem(60, 9) As Variant

For i = 1 To 60: For j = 1 To 9

nameitem(i, j) = Cells(i + 6, j + 25)

If i = 31 And j = 1 Then

Set myrange_a = Sheets(ftworklcal).Range("M7:U36")

Sheets(ftworklcal).Range("m7:u36").Value = nameitem

Else

Set myrange_a = Sheets(ftworklcal).Range("B7:J36")

Sheets(ftworklcal).Range("B7:J36").Value = nameitem

End If

Next j

Next i

Set myrange_a = Nothing

End Function

½Ð«ü±Ð ÁÂÁÂ

1.°}¦C¤£¶·­n´`Àô½á­È¡Aª½±µnameitem=[z7:ag66]§Y¥i
2.¼g¤JÀx¦s®æªº°Ê§@­n¦b´`Àô¥~¡C

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2010-10-21 14:31 ½s¿è

¦^´_ 1# yurckr
  1. Sub Ex()
  2. Dim MyRange_a As Range, nameitem(1 To 60, 1 To 9), i%, j%
  3. For i = 1 To 60
  4.     For j = 1 To 9
  5.         nameitem(i, j) = Cells(i + 6, j + 25)
  6.     Next
  7. Next
  8. Set MyRange_a = Sheets(ftworklcal).Range("B7:J36")
  9. For i = 1 To MyRange_a.Rows.Count
  10.    MyRange_a.Rows(i) = Application.Index(nameitem, i)
  11. Next
  12. Set MyRange_a = Sheets(ftworklcal).Range("M7:U36")
  13. For i = 1 To MyRange_a.Rows.Count
  14.    MyRange_a.Rows(i) = Application.Index(nameitem, i + 30)
  15. Next
  16. End Sub
½Æ»s¥N½X

TOP

GBKEE¥S ¤Ó·PÁ§A¤F¡A§¹¥þ²Å¦X§Ú­nªºµ²ªG

Application.Index ³o­ÓÃöÁ䪺¥Îªk§Ú¤S¾Ç¤F¤@©Û

¤]·PÁ oobird ªº«ü±Ð

TOP

        ÀR«ä¦Û¦b : Ãø¦æ¯à¦æ¡AÃø±Ë¯à±Ë¡AÃø¬°¯à¬°¡A¤~¯àª@µØ¦Û§Úªº¤H®æ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD