Greetings all...
What I'm trying do is simply add a carriage return to each cell string value except for the last one
The code doesn't error but it also doesn't work when the last string value is in Range("G" & Lr1) it doesn't move to the 'Else' statement
Help?
Thank You...
Code:
With WsTempHold
Lr1 = .Cells(.Rows.Count, "G").End(xlUp).Row + 1
.Range("G" & Lr1) = Me.CmbItemRqstdAdd.Value
Dim X As Strng, Cell as Range
For Each Cell In .Range("G2:G" & Lr1)
If(Len(Cell.Value)>10 And .Cells(.Rows.Count, "G").End(xlUp).Row <> .Range("G" & Lr1) Then
X = X & Cell.Value & Chr(10)
Else
X = X & Cell.Value
End If
Next
What I'm trying do is simply add a carriage return to each cell string value except for the last one
The code doesn't error but it also doesn't work when the last string value is in Range("G" & Lr1) it doesn't move to the 'Else' statement
Help?
Thank You...
Last edited: