Добрый день. Есть такой код. Как сделать, чтобы изменялись все прописные буквы, кроме, например: столбца M:
Код |
---|
Sub maxibel() Dim rng As Range, cl As Range On Error Resume Next Set rng = ActiveSheet.UsedRange.SpecialCells(xlCellTypeConstants) On Error GoTo 0 If Not rng Is Nothing Then Application.FindFormat.Clear rng.Replace What:=",", Replacement:=".", LookAt:=xlPart, SearchOrder:=xlByRows, _ MatchCase:=False, MatchByte:=False For Each cl In rng cl.Value = UCase(cl.Value) Next cl End If End Sub |