Hi,
Below is a recorded macro that looks for text "Message" in Column D and updates with alphabet "A" in respective cell in Column A. It then looks for vertical line "|" in Column D and moves down 2 cell.
The code -
I want the code to do above activity every time Column D is pasted with any data. It has got to do with worksheet change event, but don't know how to make the required changes.
Since there will be multiple sheets involved I want the code for "ThisWorkbook".
I have attached an example sheet for reference.
Any assistance will be greatly appreciated.
Below is a recorded macro that looks for text "Message" in Column D and updates with alphabet "A" in respective cell in Column A. It then looks for vertical line "|" in Column D and moves down 2 cell.
The code -
Code:
Sub Macro6()
'
' Macro6 Macro
'
'
Selection.Find(What:="message", After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate
ActiveCell.Offset(0, -3).Range("A1").Select
ActiveCell.FormulaR1C1 = "a"
ActiveCell.Offset(0, 1).Range("A1").Select
Cells.Find(What:="|", After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
, SearchFormat:=False).Activate
ActiveCell.Offset(2, 0).Range("A1").Select
End Sub
I want the code to do above activity every time Column D is pasted with any data. It has got to do with worksheet change event, but don't know how to make the required changes.
Since there will be multiple sheets involved I want the code for "ThisWorkbook".
I have attached an example sheet for reference.
Any assistance will be greatly appreciated.