- ©«¤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 ©ó 2010-10-17 19:24 ½s¿è
¦^´_ 21# mycmyc
±Nµ{¦¡½X½Æ»s¨ì ¤@¯ë¼Ò²Õ (Module) ª«¥ó¤¤
¤u§@ªí«ü¥O [´¡¤J]->¨ç¼Æ-> ¨Ï¥ÎªÌ©w¸q -> Name_Defend ¨ç¼Æ
Sub ReWord() ¬O¦bsheet1ªºAÄ椤´M§ä½Æ©m- Dim GetEeWord As Object
- Function Name_Defend(Word As String) As String
- Dim N As String
- If Len(Word) < 2 Then Name_Defend = Word: Exit Function
- If GetEeWord Is Nothing Then ReWord
- If GetEeWord.Exists(Mid(Word, 1, 2)) And Len(Word) >= 3 Then
- Name_Defend = Mid(Word, 1, 2) & "x" & Mid(Word, 4, Len(Word) - 3)
- Else
- Name_Defend = Mid(Word, 1, 1) & "x" & Mid(Word, 3, Len(Word) - 2)
- End If
- End Function
- Sub ReWord()
- Dim E As Range
- Application.MacroOptions "Name_Defend", "ÁôÂém¦W²Ä¤GÓ¦r ªLx¥¿"
- Set GetEeWord = CreateObject("Scripting.Dictionary")
- For Each E In Sheet1.Range("A:A").SpecialCells(xlCellTypeConstants)
- GetEeWord(E.Value) = ""
- Next
- End Sub
½Æ»s¥N½X |
|