- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 256
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-26
|
¦^´_ 10# rph - Private Sub CommandButton1_Click()
- Dim A As Range
- fc = InputBox("¿é¤J¦r¦ê", , "A") '¿é¤J±ý·j´M¦r¤¸
- s = Len(fc) '¿é¤J¦r¦êªº¦r¤¸¼Æ
- For Each A In UsedRange '¦b«ö¶s©Ò¦b¤u§@ªíªº¤w¨Ï¥ÎÀx¦s®æ¤¤§@°j°é
- k = InStr(A, fc) '±ý·j´M¦r¤¸¦bÀx¦s®æ¤¤²Ä´XÓ¦r¤¸¥X²{
- If k > 0 Then A.Characters(k, s).Font.ColorIndex = 3 'K>0ªí¥Ü¦³³oÓ¦r¦ê¦s¦b¡A´N±NÀx¦s®æ²Äk¦r¤¸¶}©l¨úsÓ¦r¤¸ªø«×§ï¬°¬õ¦â¦rÅé
- Next
- End Sub
½Æ»s¥N½X §A¥²¶·§ï±¼usedrange¤~¯à¨Ï¥Î¡AÀ³¸Ó¬O§Aªºµ{¦¡¬O¼g¦b¤@¯ë¼Ò²Õ¡A¤£¬O¤u§@ªí¼Ò²Õªºì¦]
§ï¦¨ActiveSheet.UsedRange´N·|¥h§â§@¥Î¤¤ªº¤u§@ªí©Ò¦³³Q¨Ï¥ÎÀx¦s®æ°µÀˬd |
|