RE: http://www.mrexcel.com/forum/excel-...-cell-when-key-words-entered.html#post4208838
Rick HELP please. I think we lost ability to connect after last post at the above link. After I tried the program with the test data it was working fine. But now that I am entering data that may be longer or something, the code is giving me a 1004 error formula too long. It seems to work fine on the first 4 lines but if there are more than 4 lines of data, it returns the error. Also see what it does to "Subjective complaints" in the posted example below.
I posted the worksheet and it can be accessed at this link below. Hopefully you can help because it seemed to work so well with the short test data we used.
https://drive.google.com/file/d/0B74...ew?usp=sharing
Also, here was the last code I had on this one:
Sub ReplaceWords()
Dim r As Long, Words As Variant
Words = Sheets("Words").Range("A1", Sheets("Words").Cells(Rows.Count, "A").End(xlUp))
For r = 1 To UBound(Words)
Sheets("Sheet2").Columns("G").Replace Words(r, 1), vbLf & Words(r, 1), xlPart, , False
Next
End Sub
Rick HELP please. I think we lost ability to connect after last post at the above link. After I tried the program with the test data it was working fine. But now that I am entering data that may be longer or something, the code is giving me a 1004 error formula too long. It seems to work fine on the first 4 lines but if there are more than 4 lines of data, it returns the error. Also see what it does to "Subjective complaints" in the posted example below.
I posted the worksheet and it can be accessed at this link below. Hopefully you can help because it seemed to work so well with the short test data we used.
https://drive.google.com/file/d/0B74...ew?usp=sharing
Also, here was the last code I had on this one:
Sub ReplaceWords()
Dim r As Long, Words As Variant
Words = Sheets("Words").Range("A1", Sheets("Words").Cells(Rows.Count, "A").End(xlUp))
For r = 1 To UBound(Words)
Sheets("Sheet2").Columns("G").Replace Words(r, 1), vbLf & Words(r, 1), xlPart, , False
Next
End Sub