kevinsamuelabraham
New Member
- Joined
- Jun 26, 2011
- Messages
- 8
Hi ,
I am Kevin, a newbie both to the forum and Excel Macro coding. I work with Excel 2007 on Windows XP.
I have a worksheet with conditional formatting. It highlights cells with duplicate values with RED as the background color. Once the data has been entered, I will have to perform certain processing for the duplicate records.
To do this I am parsing all the cells from left to right and top to bottom. While doing that, I would like to check the background color of the cell. If the background color is (255,0,0) then I would like to do some processing ...
Something to the effect of
Set sh3 = Sheets("Assignments")
If (sh3.Cells(row, column).Interior.Color = RGB(255, 0, 0)) Then
<Processing>
End If
but this doesn't seem to work. So could you please let me know how to alter this funtion to make it work, or if there is any other funtion that I should be using to get this task completed.
Please let me know if you need further clarification on the problem.
I look forward to hearing from people on this and I really appreciate you taking time to help me out with this.
Thanks and I hope you had a great weekend !
Cheers,
KeV !
I am Kevin, a newbie both to the forum and Excel Macro coding. I work with Excel 2007 on Windows XP.
I have a worksheet with conditional formatting. It highlights cells with duplicate values with RED as the background color. Once the data has been entered, I will have to perform certain processing for the duplicate records.
To do this I am parsing all the cells from left to right and top to bottom. While doing that, I would like to check the background color of the cell. If the background color is (255,0,0) then I would like to do some processing ...
Something to the effect of
Set sh3 = Sheets("Assignments")
If (sh3.Cells(row, column).Interior.Color = RGB(255, 0, 0)) Then
<Processing>
End If
but this doesn't seem to work. So could you please let me know how to alter this funtion to make it work, or if there is any other funtion that I should be using to get this task completed.
Please let me know if you need further clarification on the problem.
I look forward to hearing from people on this and I really appreciate you taking time to help me out with this.
Thanks and I hope you had a great weekend !
Cheers,
KeV !