I'm pretty new to VBA, and have been pretty successful in finding the answers I need, until now. I want to take one value in column A, and see if it appears in column B and perform an action when it does find the value and then go the next column in column B. I feel like I am close just not getting something right.
Here's what I've tried so far
Sub Macro1()
'
' Macro1 Macro            
    Dim currentA As String
    Dim currentB As String
    Dim a As Integer
    Dim b As Integer
    a = 2
    b = 1
    Do Until IsEmpty(ActiveCell)
        Cells(a, b).Select
        currentA = ActiveCell
        Debug.Print (currentA)
        a = a + 1
        Range("b2").Select            
        Do Until IsEmpty(ActiveCell)                
            currentB = ActiveCell                
            If currentA = currentB Then
                With Selection.Interior
                    .Pattern = xlSolid
                    .PatternColorIndex = xlAutomatic
                    .ThemeColor = xlThemeColorAccent1
                    .Color = 65535
                    .PatternTintAndShade = 0
                    .TintAndShade = 0
                End With
            End If
            Debug.Print (currentA)                   
            ActiveCell.Offset(1, 0).Select
        Loop                                       
    Loop
End Sub
 
     
     
     
    
 
    