I need to modify a bunch of excel files, for any row that contains the word "Skimmer", I need to move the value from column B (same row) to in front of Skimmer (always in column K)
like this: (1)Skimmer, (2)Skimmer, (3)Skimmer. (The value in column B does not need to be removed)
see below for example file, code is also below, this is not working for me....
any help is appreciated, dropbox link for the example file is also below
like this: (1)Skimmer, (2)Skimmer, (3)Skimmer. (The value in column B does not need to be removed)
see below for example file, code is also below, this is not working for me....
any help is appreciated, dropbox link for the example file is also below
VBA Code:
Sub AssignStructureIDToSkimmer()
With Range("K2:K" & Range("K" & Rows.Count).End(xlUp).Row)
.Value = Evaluate(Replace(Replace("If(" & .Offset(, 10).Address & "=""Skimmer"","" ""&@,if(@="""","""",@))", "@", .Address), "#", .Offset(, 9).Address))
End With
End Sub