Last active
May 6, 2019 20:28
-
-
Save inpromotion/0907790e03954b85711189714cb5d4e0 to your computer and use it in GitHub Desktop.
Макрос поиска латинских букв в кириллическом тексте в Excel. По мотивам http://moonexcel.com.ua/%D0%BF%D0%BE%D0%B8%D1%81%D0%BA-%D0%BB%D0%B0%D1%82%D0%B8%D0%BD%D1%81%D0%BA%D0%B8%D1%85-%D0%B1%D1%83%D0%BA%D0%B2-%D0%B2-%D1%82%D0%B5%D0%BA%D1%81%D1%82%D0%B5_ru
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Нажмите клавиши ALT + F11 , чтобы открыть редактор Visual Basic | |
2. Добавьте новый пустой модуль через меню Insert - Module | |
3. Скопируйте и вставьте в модуль код макроса. | |
4. Переименуйте модуль | |
Sub ShowLatin() | |
'moonexcel.com.ua | |
Dim c As Range, i As Long | |
For Each c In Selection | |
For i = 1 To Len(c) | |
If Mid$(c, i, 1) Like "[A-Za-z]" Then c.Characters(Start:=i, Length:=1).Font.ColorIndex = 3 | |
Next i, c | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment