Im trying to use VBA in order to detect cells which contain the word HELLO and then:
take the 7th to 10th characters and copy those to a new sheet on the first available row
then copy the 12th to last character to a second column on the new sheet.
Repeat for all cells containing the phrase.
Right now I can’t get the code to copy the first cell that contain the phrase.
This is the current code:
Sub test() Dim LR As Long, i As Long With Sheets("Sheet1") LR = .Range("A" & Rows.Count).End(xlUp).Row For i = 1 To LR If .Range("A" & i) Like "*HELLO*" Then .Copy Mid(Range("A" & i), 2, 2) Next i End Sub
end ifand anend with...turns out that is not the problem anyway.