I have written a macro to collapse my comments into the first blank column in a row that are spread out over several columns on any given row, which was working fine, but now the linked report that is feeding this information into my report has cells that have no info but instead hard returns which appear blank but my macro is not reading these cells as blank. What can I add to my macro to get it to clear all cells that only have hard returns and no other info before running the remainder of the tasks I have set for it?
This is what I have tried but it is not working, is there some other code for hard return?
' Delete blanks
Dim c As Range
Dim rng As Range
Set rng = Range("U4:BX98")
For Each c In rng
If c.Value = "CHAR(10)" Then c.ClearContents
Next c
Bookmarks