- ©«¤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
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2012-1-15 07:07 ½s¿è
¦^´_ 2# register313
¥X¦Û¦óÄæ¦ì : ¦p´M§äªºÈ¦b¤@Ä椤¥X²{¼Æ¦¸·|¦³»~®t- Option Explicit
- Sub Ex()
- Dim MyText As String, Rng As Range, F_Address As String, TheFind As String
- MyText = Trim(InputBox("½Ð¿é¤Jn´M§äªºÈ:"))
- If MyText <> "" Then
- Set Rng = Range("A1").CurrentRegion.EntireColumn.Find(MyText, lookat:=xlWhole)
- If Not Rng Is Nothing Then
- F_Address = Rng.Address
- Do
- TheFind = IIf(TheFind = "", Rng.Address(0, 0), TheFind & " " & Rng.Address(0, 0))
- Set Rng = Range("A1").CurrentRegion.EntireColumn.FindNext(Rng)
- Loop Until F_Address = Rng.Address
- End If
- End If
- If TheFind <> "" Then
- MsgBox MyText & " ¦ì©ó : " & TheFind
- Else
- MsgBox "¨S¦³§ä¨ì " & MyText
- End If
- End Sub
½Æ»s¥N½X |
|