- ©«¤l
- 1018
- ¥DÃD
- 15
- ºëµØ
- 0
- ¿n¤À
- 1058
- ÂI¦W
- 0
- §@·~¨t²Î
- win7 32bit
- ³nÅ骩¥»
- Office 2016 64-bit
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2012-5-9
- ³Ì«áµn¿ý
- 2022-9-28
|
¦^´_ 5# esperanto
À³¸Ó¬O§A¦b§Oªºµ{¦¡¡A¦b§ä¨ìc«á¤£·|§ï±¼cªºÈ¡A©Ò¥Hloop¤¤¤£·|¦³c¬°nothing(§ä¤£¨ì¤U¤@Ó)ªº°ÝÃD¡C
¦ÓVBA»¡©ú½d¨Ò- With Worksheets(1).Range("a1:a500")
- Set c = .Find(2, LookIn:=xlValues)
- If Not c Is Nothing Then
- FirstAddress = c.Address
- Do
- c.Value = 5
- Set c = .FindNext(c)
- Loop While Not c Is Nothing And c.Address <> FirstAddress
- End If
- End With
½Æ»s¥N½X »¡©ú½d¨Ò¦³c.value = 5 ¡A2³£§ï¬°5«á´N§ä¤£¨ì2¤F
¦Ó§Aªº¨Ò¤l¡A¦³Range(Worksheets("Scheduling").Cells(c.Row, 1), Worksheets("Scheduling").Cells(c.Row + 1, 9)).ClearContents
·|§â§A§äªºmachine²M±¼¡A©Ò¥HFindNext³Ì«á·|¶Ç¦^Nothing |
|