Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Sub text_cut()
Dim i As Long, col As Long, text As String, q, lr
q = 4 ' количество символов
col = 1 ' номер столбца
lr = Cells(Rows.Count, col).End(xlUp).Row
For i = 1 To lr
text = Cells(i, col).Value
Cells(i, col).Value = Left(text, q)
Next i
End
End Sub
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question