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

for -step- nextÂùÅܼƦ^°é«ç»ò¼g

for -step- nextÂùÅܼƦ^°é«ç»ò¼g

¦pªþ¥ó
·Q§â¤u§@ªí1¸Ìªº¤º®eÅã¥Ü©ó¤u§@ªí2
¦p¦ó§Q¥Îfor-step-next¼g¥X¨Ó©O?
¥H¤U¬O¤p§Ì¼gªº
¦ý¥u¯à¦³1­ÓÅܼƦ^°é
¥i¥HÀ°¤p§Ì«ü¥¿¶Ü?
for  i=2 to 11 step 1
  for j=4 to 22 step 2
worksheets("1").cells(i,2).value=worksheets("2").cells(j,4)
next j
next i
¥t½Ð°Ý
worksheets("1").cells(i,2).value=worksheets("2").cells(j,4)
»P
worksheets("1").cells(i,2)=worksheets("2").cells(j,4)
¦³¦ó¤£¦P??

990830-2.rar (5.27 KB)

¦^´_ 6# oobird


    ·PÁÂoobir¤j¤j«ü¾É~~~~

TOP

i = 4
For Each c In Sheet1.[d10:d14]
Sheet2.Cells(i, 4) = c
i = i + 5
Next

TOP

¥»©«³Ì«á¥Ñ oak0723-1 ©ó 2010-8-30 21:13 ½s¿è

¹ï¤£°_
¤p§Ì¸ê½è·M¬N
¤ñ¸û¬ÝªºÀ´jackdream ¤j¤j¼gªºµ{¦¡½X
oobird ¤j¤j¹ï¤£°_~~§A¼gªº¤p§Ì¬Ý¤£À´~~~
¦ý¬O¤p§ÌÁÙ¦³¤@­ÓºÃ¼{
­YµLªk¼g¦¨¦pjackdreamªºµ¥¦¡
¦pªþ¥ó¦Ó«D¥Î2­ÓÅܼƤ£¥i®É
­n¦p¦ó¼g

990830-3.rar (4.83 KB)

TOP

¦^´_ 3# oobird


    ·P®¦~~~~ÁÂÁ«ü¾É~~

TOP

a = Join(Application.Transpose([b2:b11]), "  ")
Sheet2.[c4].Resize(19, 1) = Application.Transpose(Split(a))

TOP

·Q§â¤u§@ªí1¸Ìªº¤º®eÅã¥Ü©ó¤u§@ªí2
¦p¦ó§Q¥Îfor-step-next¼g¥X¨Ó©O?
¦ý¥u¯à¦³1­ÓÅܼƦ^°é
oak0723-1 µoªí©ó 2010-8-30 14:25
  1. Sub test()
  2.     For i = 2 To 11 Step 1  '«á­±ªº Step 1 ¥i¬Ù²¤,§ï¬° For i = 2 To 11 §Y¥i
  3.         Worksheets("2").Cells(i * 2, 4) = Worksheets("1").Cells(i, 2).Value
  4.     Next i
  5. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ¹ï¤÷¥À­nª¾®¦¡A·P®¦¡B³ø®¦¡C
ªð¦^¦Cªí ¤W¤@¥DÃD