Livin404
Well-known Member
- Joined
- Jan 7, 2019
- Messages
- 743
- Office Version
- 365
- 2019
- Platform
- Windows
Good evening, the follow macro works great if I need to find all fillable text starting in Column K2. I would like it to look into one specific cell "K6" and it would put the result in "H8".
I thought I could change the data range to :
of course it didn't help. Again everything works find I just it to read one specific cell "K6".
Thank you very much indeed.
I thought I could change the data range to :
Excel Formula:
Data = Range("K6").Value
Thank you very much indeed.
VBA Code:
Sub International_Msn()
Dim r As Long, Data As Variant, Result As Variant
Data = Range("K2", Cells(Rows.Count, "K").End(xlUp)).Value
Result = Range("H8").Resize(UBound(Data)).Value
For r = 1 To UBound(Data)
If Data(r, 1) Like "[ACEFGHIKLMNPQRSW0124678][ESU][N]*" Then
Result(r, 1) = Result(r, 1) & Mid("/International", 1 - (Result(r, 1) = ""))
End If
Next
Range("H8").Resize(UBound(Result)) = Result
End Sub