- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 257
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-27
|
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«ä
¤Wz¦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 |
|