ªð¦^¦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)

·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

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

TOP

¦^´_ 3# oobird


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

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

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

TOP

¦^´_ 6# oobird


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

TOP

        ÀR«ä¦Û¦b : ¡i¥Í©R¦b©I§l¶¡¡j¦òªû»¡¡G¡u¥Í©R¦b©I§l¶¡¡C¡v¤HµLªkºÞ¦í¦Û¤vªº¥Í©R¡A§óµLªk¾×¦í¦º´Á¡AÅý¦Û¤v¥Ã¦í¤H¶¡¡C¬JµM¥Í©R¥h¨Ó³o»òµL±`¡A§Ú­Ì§óÀ³¸Ó¦n¦n¦a·R±¤¥¦¡B§Q¥Î¥¦¡B¥R¹ê¥¦¡AÅý³oµL±`¡BÄ_¶Qªº¥Í©R¡A´²µo¥¦¯uµ½¬üªº¥ú½÷¡A¬M·Ó¥X¥Í©R¯u¥¿ªº»ù­È¡C
ªð¦^¦Cªí ¤W¤@¥DÃD