In layman terms, what I'm trying to do:
If "V2" = "A2" then
"V2" = "True"
Else
"V2" = "False"
Then proceeding to the next row in both ranges, all the way to the bottom of the data set.
Not sure the coding highlighted in RED is absolutely necessary, seems this can be done in a more simple format. Any help is appreciated.
If "V2" = "A2" then
"V2" = "True"
Else
"V2" = "False"
Then proceeding to the next row in both ranges, all the way to the bottom of the data set.
Code:
Sub Step6()
[COLOR=#ff0000]Dim mycell As Range[/COLOR]
[COLOR=#ff0000]Dim myrange As Range[/COLOR]
[COLOR=#ff0000]
[/COLOR]
[COLOR=#ff0000]For Each mycell In Range("V2", Range("V" & Rows.Count).End(xlUp))[/COLOR]
[COLOR=#ff0000]For Each myrange In Range("A2", Range("A" & Rows.Count).End(xlUp)[/COLOR])
Select Case Range(mycell).Value
Case "ATG"
If Range(myrange).Value = "ATG" Then
Range(mycell).Value = "True"
Else
Range(mycell).Value = "False"
End If
End Select
[COLOR=#ff0000]Next mycell[/COLOR]
[COLOR=#ff0000]Next myrange[/COLOR]
End Sub
Not sure the coding highlighted in RED is absolutely necessary, seems this can be done in a more simple format. Any help is appreciated.