This code im running works... but there is alot of repetition here, can someone take a look to see if there are ways to shorten this
Code:
Dim lookFor1, lookFor2, lookFor3, lookFor4, lookFor5, lookFor6 As Range
Dim lookFor7, lookFor8, lookFor9, lookFor10, lookFor11, lookFor12 As Range
Dim rng As Range
Dim col As Integer
Dim found1, found2, found3, found4, found5, found6 As Variant
Dim found7, found8, found9, found10, found11, found12 As Variant
Set lookFor1 = Sheets("Sheet1").Range("J23")
Set lookFor2 = Sheets("Sheet1").Range("J24")
Set lookFor3 = Sheets("Sheet1").Range("J25")
Set lookFor4 = Sheets("Sheet1").Range("J26")
Set lookFor5 = Sheets("Sheet1").Range("J27")
Set lookFor6 = Sheets("Sheet1").Range("J28")
Set lookFor7 = Sheets("Sheet1").Range("J29")
Set lookFor8 = Sheets("Sheet1").Range("J30")
Set lookFor9 = Sheets("Sheet1").Range("J31")
Set lookFor10 = Sheets("Sheet1").Range("J32")
Set lookFor11 = Sheets("Sheet1").Range("J33")
Set lookFor12 = Sheets("Sheet1").Range("J34")
Set rng = Sheets("Sheet5").Columns("A")
col = 1
On Error Resume Next
found1 = Application.VLookup(lookFor1.Value, rng, col, 0)
found2 = Application.VLookup(lookFor2.Value, rng, col, 0)
found3 = Application.VLookup(lookFor3.Value, rng, col, 0)
found4 = Application.VLookup(lookFor4.Value, rng, col, 0)
found5 = Application.VLookup(lookFor5.Value, rng, col, 0)
found6 = Application.VLookup(lookFor6.Value, rng, col, 0)
found7 = Application.VLookup(lookFor7.Value, rng, col, 0)
found8 = Application.VLookup(lookFor8.Value, rng, col, 0)
found9 = Application.VLookup(lookFor9.Value, rng, col, 0)
found10 = Application.VLookup(lookFor10.Value, rng, col, 0)
found11 = Application.VLookup(lookFor11.Value, rng, col, 0)
found12 = Application.VLookup(lookFor12.Value, rng, col, 0)
If IsError(found1) Then
Else: lookFor1.Interior.ColorIndex = 44
End If
If IsError(found2) Then
Else: lookFor2.Interior.ColorIndex = 44
End If