Hi,
I have a macro I (with a ton of help) wrote a while ago to auto fill a column based on a value in another column. Here it is:
ElseIf Not Intersect(Target, Columns("C")) Is Nothing Then
Dim tmp As Range
Set tmp = Sheets("Client No List").Range("A2:A1500").Find(Target.Value)
If Not tmp Is Nothing Then
Target.Offset(0, 1).Value = tmp.Offset(0, 1).Value
Else
Target.Offset(0, 1).Value = "???"
End If
End If
End Sub
Originally this was written where the column I wanted to automatically fill based on the value in column C was column D (and it works). D has since moved over 1 spot, and is now Column E. So, what do I need to change in the formula so that the proper value is entered into column E based on value in column C?
Thanks in advance,
I have a macro I (with a ton of help) wrote a while ago to auto fill a column based on a value in another column. Here it is:
ElseIf Not Intersect(Target, Columns("C")) Is Nothing Then
Dim tmp As Range
Set tmp = Sheets("Client No List").Range("A2:A1500").Find(Target.Value)
If Not tmp Is Nothing Then
Target.Offset(0, 1).Value = tmp.Offset(0, 1).Value
Else
Target.Offset(0, 1).Value = "???"
End If
End If
End Sub
Originally this was written where the column I wanted to automatically fill based on the value in column C was column D (and it works). D has since moved over 1 spot, and is now Column E. So, what do I need to change in the formula so that the proper value is entered into column E based on value in column C?
Thanks in advance,