- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
![2017 Âû¦~¥þ¶Ô¼ú³¹ 2017 Âû¦~¥þ¶Ô¼ú³¹](images/common/ji.gif) ![2016µU¦~¥þ¶Ô¼ú³¹ 2016µU¦~¥þ¶Ô¼ú³¹](images/common/hou.gif) ![2015¦Ï¦~¥þ¶Ô¼ú³¹ 2015¦Ï¦~¥þ¶Ô¼ú³¹](images/common/yang.gif) ![2014°¨¦~¥þ¶Ô¼ú³¹ 2014°¨¦~¥þ¶Ô¼ú³¹](images/common/ma.gif) ![2013³D¦~¥þ¶Ô¼ú³¹ 2013³D¦~¥þ¶Ô¼ú³¹](images/common/she.gif) ![2012Às¦~¥þ¶Ô¼ú³¹ 2012Às¦~¥þ¶Ô¼ú³¹](images/common/long.gif) ![½×¾Â°^Äm¾±³¹ ½×¾Â°^Äm¾±³¹](images/common/medal5.gif) ![¼ö¯P°Ñ»P¾±³¹ ¼ö¯P°Ñ»P¾±³¹](images/common/medal7.gif) ![2011¨ß¦~¥þ¶Ô¼ú³¹ 2011¨ß¦~¥þ¶Ô¼ú³¹](images/common/tu.gif)
|
¦^´_ 1# zxcxz - Option Explicit
- Sub Ex()
- Dim C As Range, firstAddress As String
- With Worksheets(1).Range("a1:a500")
- .Parent.Select
- Set C = .Find(2, LookIn:=xlValues) '[a1:a500] ·j´M 2
- If Not C Is Nothing Then
- firstAddress = C.Address
- Do
- C.Value = 5 '¤@ª½¦a±N2´«¸m¬°5,³Ì«á¦A¤]¨S2¤F
- Set C = .FindNext(C)
- '·j´M [a1:a500] ¤U¤@Ó 2
- C.Select '¨S¦³2®É C Is Nothing '--> C.Address ¿ù»~¨S¦³³]©wÅܼÆ
- Loop While Not C Is Nothing 'And C.Address <> firstAddress
- End If
- End With
- End Sub
- Sub Ex1()
- Dim C As Range, firstAddress As String
- With Worksheets(1).Range("a1:a500")
- Set C = .Find(2, LookIn:=xlValues) '[a1:a500] ·j´M 2
- If Not C Is Nothing Then
- firstAddress = C.Address '
- Do
- '¤£°õ¦æ C.Value = 5
- Set C = .FindNext(C) '·j´M [a1:a500] ¤U¤@Ó 2
- MsgBox C.Address <> firstAddress
- '²×·|¦^¨ì²Ä¤@2 -> C.Address = firstAddress 'Â÷¶}°j°é
- Loop While C.Address <> firstAddress '±ø¥ó¦¨¥ß¤@ª½°õ¦æ°j°é
- End If
- End With
- End Sub
½Æ»s¥N½X |
|