Hi,
I have two columns. On the first column I will be entering different words and I want the second column to update automatically based on what I input on the first column.
When I input "es" into A1, B1 will be updated to "no". When I input "no email" into A2, B2 will be updated to no, etc.
I started with recording a macro and here is the code I have:
But it didn't work. Anything I am missing? Also, is there a shorter code to check for a couple of words (es, no email, x-pro, etc.) and print "no" on column B if they satisfy?
I have two columns. On the first column I will be entering different words and I want the second column to update automatically based on what I input on the first column.
When I input "es" into A1, B1 will be updated to "no". When I input "no email" into A2, B2 will be updated to no, etc.
I started with recording a macro and here is the code I have:
Code:
If ActiveCell.Value = "es" Then
Application.EnableEvents = False
Target.Offset(, 1).Value = "no"
Application.EnableEvents = True
End If
If ActiveCell.Value = "no email" Then
Application.EnableEvents = False
Target.Offset(, 1).Value = "no"
Application.EnableEvents = True
End If
If ActiveCell.Value = "x-pro" Then
Application.EnableEvents = False
Target.Offset(, 1).Value = "no"
Application.EnableEvents = True
End If
But it didn't work. Anything I am missing? Also, is there a shorter code to check for a couple of words (es, no email, x-pro, etc.) and print "no" on column B if they satisfy?