ed.ayers315
Board Regular
- Joined
- Dec 14, 2009
- Messages
- 166
Hello Forum,
I found this searching threads and it works too well!
I want this macro to only work in selected cells, not the whole document.
I found this searching threads and it works too well!
I want this macro to only work in selected cells, not the whole document.
Code:
Sub ReplaceCRLF()
ActiveCell.Replace Chr(13), " ", xlPart 'x1Part apply to within cells (default)
ActiveCell.Replace Chr(10) & Chr(10) & "N/A", " ", xlPart 'xlWhole apply to entire cell content
End Sub