Hi,
I have a table where i would like to delete last 6 character in each row on column C.
I am using below code to delete last 6 characters basically left Len function. When I ran it doesn't give me an error however it doesn't do anything. Can nayone help me with this issue? Thanks
I have a table where i would like to delete last 6 character in each row on column C.
I am using below code to delete last 6 characters basically left Len function. When I ran it doesn't give me an error however it doesn't do anything. Can nayone help me with this issue? Thanks
VBA Code:
Sub CopyPaste()
Application.ScreenUpdating = False
Dim Wb As Workbook
Dim Ws As Worksheet
Set Wb = ActiveWorkbook
Set Ws = Sheets("Summary by L5")
Wb.Activate
Ws.Select
With Ws
For i = 21 To lastrow
.Cells(i, 3) = Left(.Cells(i, 3).Value, Len(.Cells(i, 3).Value) - 6)
Next i
End With
Application.ScreenUpdating = True