I am trying to return a name from a long line of text.
Below is a sample line:
Shipdate: 04/03/18 Stk Br # 1 Writer: Mark Smith Tax Jurisdiction: 1
Every line is edited the same every time, with a shipdate, writer, and tax jurisdiction. I am trying to extract the name of the writer in every line, which can be different.
Here I want to extract Mark Smith and paste it to a new sheet.
I understand the FIND function as a formula, but it isn't being as intuitive to me in VBA.
I had started to write something like this, but I am lost and not sure how to solve for this.
This is all wrong I know. Any ideas?
Below is a sample line:
Shipdate: 04/03/18 Stk Br # 1 Writer: Mark Smith Tax Jurisdiction: 1
Every line is edited the same every time, with a shipdate, writer, and tax jurisdiction. I am trying to extract the name of the writer in every line, which can be different.
Here I want to extract Mark Smith and paste it to a new sheet.
I understand the FIND function as a formula, but it isn't being as intuitive to me in VBA.
I had started to write something like this, but I am lost and not sure how to solve for this.
Code:
Sub Writer()Dim Writ As Variant
FindIVZ
Cells.Find(What:="Writer:*", After:=ActiveCell, LookIn:=xlFormulas, LookAt _ :=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
Writ = Application.WorksheetFunction.Find(":", "Writer:*")
This is all wrong I know. Any ideas?
Last edited: