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

[Âà¶K] Ãö©óWhile~~~wendµ²ºc

[Âà¶K] Ãö©óWhile~~~wendµ²ºc

higger :

     Ãö©óWhile~~~wendµ²ºc
« ©ó: 2005-10-31, 00:00:01 »      

--------------------------------------------------------------------------------
«Ü­¯¥Íªºµ²ºc
¹êÅ礤¼g¤F¤U­±³o­Ósub

Sub text10()
While Cells(1, 1) = 3
Cells(1, 2) = 4
Wend
Cells(1, 2) = 5
End Sub

¨ä¤¤cells(1,1)¥ý¥´¤W8
µ²ªGCells(1, 2) ¶¶§QÅܦ¨5
¦ý­Ycells(1,1)¥´3
«hÁöµMCells(1, 2)·|Åܦ¨4
¦ý·Æ¹«´N·|¤@ª½Åܦ¨"«ä¦Ò"ª¬ºA~~~
¦n¹³¬O¤@ª½¦b­«Âаj°é???

·|¤£·|¬O§Ú¤£¤F¸ÑWhile~wendªº·N¸q
¬Ý¤@¯ë®Ñ¤W¤]¤£·|¼g³o­Óµ²ºc...
³o¬O¬°¤°»ò©O???
ÁÂÁÂ~~~



...........................................

§b§b :

     Re: Ãö©óWhile~~~wendµ²ºc

Option Explicit

Sub ddd()

¡@Dim i As Integer
¡@i = 1
¡@While i <= 100
¡@¡@Cells(i, 1) = i
¡@¡@i = i + 1¡@
¡@Wend
End Sub

¨ä¹ê´N¬O°j°éªº·N«ä
¤W­z¦CÃD´N¬O¥Ñ1¶ñ¨ì100
·íi<=100®É³£¬O¥¿½T
©Ò¥Hi·|«ùÄò+1¨ì100
¦Ó±zªº¨ÒÃD¦bcells(1,1)¥´¤W3
´N¤@ª½¬O¥¿½T,©Ò¥H´NÅܦ¨µL­­°j°é
°µ¤£§¹¤F


--------------------------------------
higger :

¬Ý¦ü¸òdo~while~loop¤@¼Ë~~~

ÁÂÁÂ~~~
----------------------------------------------
leonchou
½×¾ÂºûÅ@¸s

¬Û¹ï©ó Do While ... Loop¡AWhile ... Wend ¥u¬O¤ñ¸û²¼äªº¼gªk¡C
Do ... Loop ¤~¬O¼Ð·Çªº°j°éµ²ºc¡A¥¦´£¨Ñ¤F§ó¼u©Ê¤Æªº°j°é±±¨î¡F
Do ... Loop ¦b¨S¦³ While ±¡§Î¤U¡A¥i§Q¥Î Exit Do ±ø¥ó¤Æ¸õÂ÷°j°é¡A
While ... Wend «h¨S¦³¬Û¹ïªº±±¨î¤è¦¡¡C
©Ò¥H°£«D§A¯à½T©w¤£·|³y¦¨µL­­°j°é¡A§_«h¤£«Øij¨Ï¥Î While ... Wend ¡C

¥u¥Î¹Ldo....loop while , ²Ä¤@¦¸µo²{ÁÙ¦³³o­Ó¥Îªk

TOP

WHILE WEND ¦L¶H¤¤¬O±ø¥ó²Å¦X±Ò°Ê°j°éªº¤@­ÓªF¦è¡C

TOP

        ÀR«ä¦Û¦b : ¬Ý§O¤H¤£¶¶²´¡A¬O¦Û¤v­×¾i¤£°÷¡C
ªð¦^¦Cªí ¤W¤@¥DÃD