jvdherik010
New Member
- Joined
- Dec 30, 2016
- Messages
- 13
hi all,
i am busy with an formula, for a quite big project.
i use this code:
the thing is that i have alot of these "codes" like FCNSWANLRTM, and all are different.
i need to find a code that he is searching InStr for "FCN", and then
.value needs to be that "FCN" + 8 characters on the right put in a certain cell in that row.
but i have another challenge..
1 cell can look like:
[TABLE="width: 166"]
<colgroup><col></colgroup><tbody>[TR]
[TD]FCNCANNLRTM[/TD]
[/TR]
[TR]
[TD]FCNFOCNLRTM[/TD]
[/TR]
[TR]
[TD]FCNFOSNLRTM[/TD]
[/TR]
[TR]
[TD]FCNHUANLRTM[/TD]
[/TR]
[TR]
[TD]FCNLYGNLRTM[/TD]
[/TR]
[TR]
[TD]fcnmainnlrtmfcnfosnlrtm[/TD]
[/TR]
[TR]
[TD]FCNNGBNLRTM[/TD]
[/TR]
[TR]
[TD]FCNNTGNLRTM[/TD]
[/TR]
</tbody>[/TABLE]
and i need every "code"
what i think i need is an Instr searched for "FCN", and the value is "FCN" + 8 characters on the right _
copied to the last.collumn of the sheet.. but on that same row..
here the link to my file
https://www.dropbox.com/s/t4485ztfux5oj9r/test havens.xlsm?dl=0
i hope someone can help me
i am busy with an formula, for a quite big project.
i use this code:
Code:
V_End_Of_Table = ActiveSheet.UsedRange.Rows.Count
Dim cell As Range
For Each cell In Range("CA2:CA" & V_End_Of_Table)
If InStr(1, [SUB]cell.Value[/SUB], "fcnswanlrtm", vbTextCompare) > 0 Then
Range("CX" & cell.Row).Value = "FCNSWANLRTM"
Else
End If
Next
the thing is that i have alot of these "codes" like FCNSWANLRTM, and all are different.
i need to find a code that he is searching InStr for "FCN", and then
.value needs to be that "FCN" + 8 characters on the right put in a certain cell in that row.
but i have another challenge..
1 cell can look like:
[TABLE="width: 166"]
<colgroup><col></colgroup><tbody>[TR]
[TD]FCNCANNLRTM[/TD]
[/TR]
[TR]
[TD]FCNFOCNLRTM[/TD]
[/TR]
[TR]
[TD]FCNFOSNLRTM[/TD]
[/TR]
[TR]
[TD]FCNHUANLRTM[/TD]
[/TR]
[TR]
[TD]FCNLYGNLRTM[/TD]
[/TR]
[TR]
[TD]fcnmainnlrtmfcnfosnlrtm[/TD]
[/TR]
[TR]
[TD]FCNNGBNLRTM[/TD]
[/TR]
[TR]
[TD]FCNNTGNLRTM[/TD]
[/TR]
</tbody>[/TABLE]
and i need every "code"
what i think i need is an Instr searched for "FCN", and the value is "FCN" + 8 characters on the right _
copied to the last.collumn of the sheet.. but on that same row..
here the link to my file
https://www.dropbox.com/s/t4485ztfux5oj9r/test havens.xlsm?dl=0
i hope someone can help me
