Thanks for your help, a macro was created for excel, but now the question has arisen of how to optimize the performance of this macro. For 130 records, it works for about 20 seconds, while restrictions are imposed on only about 10 columns. There should be more than a hundred columns and rows of several thousand. It will slow down. How can I make this optimization?
Private Sub Worksheet_Change(ByVal Target As Range) Dim objCell As Range If Target.Row = 1 Then Exit Sub If Not Application.Intersect(Range("A:CY"), Target) Is Nothing Then Application.EnableEvents = False For Each objCell In Target With objCell If Len(.Value) > 0 Then Select Case .Column Case 1, 2 If TypeName(.Value) = "String" Then .Value = Left(.Value, 100) Else .Value = .Value End If Case 3, 4 If TypeName(.Value) = "String" Then .Value = Left(.Value, 5) Else .Value = .Value End If Case 5, 6 If .Value <> 0 And .Value <> 1 Then .Value = "" Case 7, 8 .Value = Replace(.Value, ";", "") Case 9, 10 If Not IsNumeric(.Value) Then .ClearContents End Select End If End With Next objCell Application.EnableEvents = True End If End Sub Thank.
Application.ScreenUpdating = False,Application.ScreenUpdating = True? - Denis