Hello! A little new to all this Macro, and VBA stuff so bear with me please.
I have a column that is labeled "Accident Description" and it is usually 1-2 sentences long describing an incident/accident. For example, "Rib injury when descending ladder and slipped and fell between 5 and 10 feet"
In that example I would want to pull the word "Rib" and add it to a new column titled "Body Part" and then I would like to add another column labeled "Source" and add the word "Ladder" to the source column.
I have tried:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Value = "Rib" Then
Target.Value = "Rib"
End If
End Sub
But I am getting a run-time error '424' from it.
I will also have literally hundreds of these accident descriptions, and while I realize I will have to manually enter the words/descriptors I am looking for, I would like to know where to start!
I have a column that is labeled "Accident Description" and it is usually 1-2 sentences long describing an incident/accident. For example, "Rib injury when descending ladder and slipped and fell between 5 and 10 feet"
In that example I would want to pull the word "Rib" and add it to a new column titled "Body Part" and then I would like to add another column labeled "Source" and add the word "Ladder" to the source column.
I have tried:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Value = "Rib" Then
Target.Value = "Rib"
End If
End Sub
But I am getting a run-time error '424' from it.
I will also have literally hundreds of these accident descriptions, and while I realize I will have to manually enter the words/descriptors I am looking for, I would like to know where to start!