Do you have some sample data with expected results?
This is an example of the code used where a string "TEXT" content is extracted into 4 separate Result strings.
The problem is the TEXT string content has been modified with additional custom text as defined in TEXT2 and TEXT3.
The Instr function does not accept search strings with wildcards (ie; "Task* Description:") and the LIKE function only returns a Boolean value and not a string location integer value.
--------------------------------------------------------
Dim Text, Text1, Text2, Text3 As String
Dim SrcString1, SrcString2, SrcString3, SrcString4 As String
Dim SrcStrLoc1, SrcStrLoc2, SrcStrLoc3, SrcStrLoc4 As Integer
Dim StrResult1, StrResult2, StrResult3, StrResult4 As String
Text1 = "Task Description: This is my task description. Task Type: This is my task type. Task Action: This my task action. Task Result: This is my task result. "
Text2 = "Task1 Description: This is my task description. Task1 Type: This is my task type. Task1 Action: This my task action. Task1 Result: This is my task result. "
Text3 = "Task Blue Description: This is my task description. Task Blue Type: This is my task type. Task Blue Action: This my task action. Task Blue Result: This is my task result. "
Text = Text1
SrcString1 = "Task Description:"
SrcString2 = "Task Type:"
SrcString3 = "Task Action"
SrcString4 = "Task Result"
SrcStrLoc1 = InStr(1, Text, SrcString1)
SrcStrLoc2 = InStr(1, Text, SrcString2)
SrcStrLoc3 = InStr(1, Text, SrcString3)
SrcStrLoc4 = InStr(1, Text, SrcString4)
StrResult1 = Mid(Text, SrcStrLoc1 + Len(SrcString1), SrcStrLoc2 - Len(SrcString1) - 1)
' = "This is my task description."
StrResult2 = Mid(Text, SrcStrLoc2 + Len(SrcString2), SrcStrLoc3 - SrcStrLoc2 - Len(SrcString2) - 1)
' = "This is my task type."
StrResult3 = Mid(Text, SrcStrLoc3 + Len(SrcString3), SrcStrLoc4 - SrcStrLoc3 - Len(SrcString3) - 1)
' = "This my task action."
StrResult4 = Mid(Text, SrcStrLoc4 + Len(SrcString4), Len(Text) - SrcStrLoc4 - Len(SrcString4))
' = "This is my task result."