I'm probably not explaining myself well enough. Here is a piece of th
actual code:
For Each Cell In Range("D3:J23")
If Range("I29").Value = Range("I26") And Cell.Value "" An
Cells(Cell.Row, "AO") = "x" Then _
Cell.Value = Range("AO1")
If Range("H29").Value = Range("H26") And Cell.Value "" An
Cells(Cell.Row, "AN") = "x" Then _
Cell.Value = Range("AN1")
If Range("G29").Value = Range("G26") And Cell.Value "" An
Cells(Cell.Row, "AM") = "x" Then _
Cell.Value = Range("AM1")
If Range("J29").Value = Range("J26") And Cell.Value "" An
Cells(Cell.Row, "AP") = "x" Then _
Cell.Value = Range("AP1")
If Range("F29").Value = Range("F26") And Cell.Value "" An
Cells(Cell.Row, "AL") = "x" Then _
Cell.Value = Range("AL1")
Next
For Each Cell In Range("K3:Q23")
If Range("I30").Value = Range("I27") And Cell.Value "" An
Cells(Cell.Row, "AO") = "x" Then _
Cell.Value = Range("AO1")
If Range("H30").Value = Range("H27") And Cell.Value "" An
Cells(Cell.Row, "AN") = "x" Then _
Cell.Value = Range("AN1")
If Range("G30").Value = Range("G27") And Cell.Value "" An
Cells(Cell.Row, "AM") = "x" Then _
Cell.Value = Range("AM1")
If Range("J30").Value = Range("J27") And Cell.Value "" An
Cells(Cell.Row, "AP") = "x" Then _
Cell.Value = Range("AP1")
If Range("F30").Value = Range("F27") And Cell.Value "" An
Cells(Cell.Row, "AL") = "x" Then _
Cell.Value = Range("AL1")
I'm sure you can see how redundant it is. There are additional range
for both the "For Each" Statements and the "If Range" statments (abou
20 of each)
Thanks agai
--
Message posted from
http://www.ExcelForum.com