Combine data in cells
Bob, Thank you for your help. However, the formula does not enter a "line
feed" to pull down to the next line. It appears as wrapped text:
1)Incorrect maturity date on TIL2)Incorrect
maturity date on Note
I've also tried chr(13) in place of chr(10) but I get a runtime error when I
use that.
I have the 1) in cell n1 the 2) in cell o1 and text in cells H4 and H5. I
want it to appear as:
1)Incorrect maturity date on TIL
2)Incorrect maturity date on Note
all in the same cell.
Thanks in advance.
"Bob Phillips" wrote:
With ActiveCell
.Formula = "=R1C14&R[" & 5 - .Row & "]C[" & 8 - .Column & "]&" & _
Chr(10) & "R1C15&R[" & 4 - .Row & "]C[" & 8 - .Column &
"]"
End With
--
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
"xgirl" wrote in message
...
Hi, I'm trying to write a macro that will combine the contents of 2 cells
in
to one with a line feed between each.
I tried to use vblf or chr(10) but it doesn't work.
ActiveCell.Formula = "=$n$1&H5" & vbLf & "$0$1&H4"
Any suggestions?
|