VBA Help Needed: How Do you extract from a column a specific color?

Tags:
Excel VBA
This is my code.
Sub Looping()
Dim matchFound As Boolean
Dim thisIsTheYValue As Integer
'For x= 3 To 6306
'For y = 3 To 1971
For x = 3 To 6306
matchFound = False
For y = 3 To 1000
If Cells(x, 4).Value = Cells(y, 9).Value Then
' this is the x column that was the same as the y column
Cells(y, 9).Interior.ColorIndex = 44
Cells(x, 4).Interior.ColorIndex = 44
matchFound = True
thisIsTheYValue = y
Else
' This Statement I want the information that corresponds to the color of  Cells (y,9)
 ' Instead I am getting a True or False value.
Cells(y, 11).Value = (Cells(y, 9).Interior.ColorIndex = -4142)
 End If
 Next
 Next
 End Sub
 Please Help Really need to get this organized. Thank You


Software/Hardware used:
VBA, Excel
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: