Hi, I am trying to enter the following code so the following formula copies in column E but keep getting an error. The formula is about 3 times longer, I shortened it for the post.
With Sheets("data")
.Range("E9:E" & .Cells(.Rows.Count, "A").End(xlUp).Row).Formula ="
IF(ISERROR(SEARCH("*aaa*",f9,1))=FALSE,"aaa",
IF(ISERROR(SEARCH("*bbb*",f9,1))=FALSE,"bbb",
IF(ISERROR(SEARCH("*ccc*",f9,1))=FALSE,"ccc",
IF(ISERROR(SEARCH("*ddd*",f9,1))=FALSE,"ddd","error"))))"
Thanks!
With Sheets("data")
.Range("E9:E" & .Cells(.Rows.Count, "A").End(xlUp).Row).Formula ="
IF(ISERROR(SEARCH("*aaa*",f9,1))=FALSE,"aaa",
IF(ISERROR(SEARCH("*bbb*",f9,1))=FALSE,"bbb",
IF(ISERROR(SEARCH("*ccc*",f9,1))=FALSE,"ccc",
IF(ISERROR(SEARCH("*ddd*",f9,1))=FALSE,"ddd","error"))))"
Thanks!