Livin404
Well-known Member
- Joined
- Jan 7, 2019
- Messages
- 774
- Office Version
- 365
- 2019
- Platform
- Windows
Greetings earlier Kevin9999 guided me on how to auto populate a cell in a given column based on a wildcard in Column A. I updated slightly for I needed Column B. It appears to be fine, but when I updated it will not retroactive
the data that also is present in Column B. I have to go back to the cell place the curser in the cell and present enter. I thought it would do the whole lot at once.
Thank you,
the data that also is present in Column B. I have to go back to the cell place the curser in the cell and present enter. I thought it would do the whole lot at once.
Thank you,
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim rng As Range
Dim result As String
If Not Intersect(Range("B:B"), Target) Is Nothing Then
Application.ScreenUpdating = False
Application.EnableEvents = False
For Each rng In Intersect(Range("B:B"), Target)
If rng.Value Like "TE*" Then
rng.Offset(0, 13).Value = "///KG"
End If
Next rng
Application.EnableEvents = True
Application.ScreenUpdating = True
End If
End Sub