Hi.
I have following Command Button which executed following code in order to remove empty line breaks from a given cell:
The problem is that nothing happens when I execute the code. The changes from code only applies when:
1 - I manually double click on the cell ("Edit Mode")
2 - Clicking anywhere else to remove focus on the cell
3 - Reexecuting the code
The problem is that I manually need to double click on each cell to get it to work.
The cell is copied from a table that is loaded from external source.
I have following Command Button which executed following code in order to remove empty line breaks from a given cell:
VBA Code:
Private Sub CommandButton1_Click()
Cells(24, "M").Select
Selection.Replace What:="" & Chr(10) & "" & Chr(10) & "", Replacement:="" & Chr(10) & ""
End Sub
The problem is that nothing happens when I execute the code. The changes from code only applies when:
1 - I manually double click on the cell ("Edit Mode")
2 - Clicking anywhere else to remove focus on the cell
3 - Reexecuting the code
The problem is that I manually need to double click on each cell to get it to work.
The cell is copied from a table that is loaded from external source.