I have this code that copies the text from column B to in front of the text in column K (same row)
See screenshot below, code worked on 163, but not on K164-167; it also worked on K175 but not on 176-179. Any reason why it is doing this?
also, What if I just want to add the text and a space without parenthesis, so (SAN-TOHO)LINER, would become SAN-TOHO LINER
See screenshot below, code worked on 163, but not on K164-167; it also worked on K175 but not on 176-179. Any reason why it is doing this?
also, What if I just want to add the text and a space without parenthesis, so (SAN-TOHO)LINER, would become SAN-TOHO LINER
VBA Code:
Sub AssignStructureIDToLiner()
With Range("K2:K" & Range("K" & Rows.Count).End(xlUp).Row)
.Value = Evaluate(Replace("=if(@=""LINER"",""(""&" & .Offset(, -9).Address & "&"")""&@,if(@="""","""",@))", "@", .Address))
End With
End Sub