Hi,
FWIW, for the double-click, you might wish to limit its execution to the range of interest, something like:
<font face=Courier New><SPAN style="color:#00007F">Option</SPAN> <SPAN style="color:#00007F">Explicit</SPAN><br> <br><SPAN style="color:#00007F">Private</SPAN> <SPAN style="color:#00007F">Sub</SPAN> Worksheet_BeforeDoubleClick(<SPAN style="color:#00007F">ByVal</SPAN> Target <SPAN style="color:#00007F">As</SPAN> Range, Cancel <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Boolean</SPAN>)<br> <br> <SPAN style="color:#00007F">If</SPAN> Target.Count = 1 And <SPAN style="color:#00007F">Not</SPAN> Application.Intersect(Me.Range("A1:P23"), Target) <SPAN style="color:#00007F">Is</SPAN> <SPAN style="color:#00007F">Nothing</SPAN> <SPAN style="color:#00007F">Then</SPAN><br> Cancel = <SPAN style="color:#00007F">True</SPAN><br> <SPAN style="color:#00007F">If</SPAN> Target.Interior.ColorIndex = xlNone <SPAN style="color:#00007F">Then</SPAN><br> Target.Interior.ColorIndex = 8<br> <SPAN style="color:#00007F">ElseIf</SPAN> Target.Interior.ColorIndex = 8 <SPAN style="color:#00007F">Then</SPAN><br> Target.Interior.ColorIndex = xlNone<br> <SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">If</SPAN><br> <SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">If</SPAN><br><SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN></FONT>
For plunking the uncolored cell vaalues in another sheet, maybe like:
In a Standard Module:
<font face=Courier New><SPAN style="color:#00007F">Option</SPAN> <SPAN style="color:#00007F">Explicit</SPAN><br> <br><SPAN style="color:#007F00">'now I've been stucked of how am I going to do those numbers who are still uncoloured</SPAN><br><SPAN style="color:#007F00">'(Range A3:P23) (not double clicked..meaning missing for me) to be added in a list in</SPAN><br><SPAN style="color:#007F00">'Sheet 2 column A3 down..</SPAN><br> <br><SPAN style="color:#00007F">Sub</SPAN> example()<br><SPAN style="color:#00007F">Dim</SPAN> rngColored <SPAN style="color:#00007F">As</SPAN> Range<br><SPAN style="color:#00007F">Dim</SPAN> Cell <SPAN style="color:#00007F">As</SPAN> Range<br><SPAN style="color:#00007F">Dim</SPAN> aryColored() <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Variant</SPAN><br><SPAN style="color:#00007F">Dim</SPAN> aryOutput(1 <SPAN style="color:#00007F">To</SPAN> 336, 1 <SPAN style="color:#00007F">To</SPAN> 1) <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Variant</SPAN><br><SPAN style="color:#00007F">Dim</SPAN> x <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Long</SPAN><br><SPAN style="color:#00007F">Dim</SPAN> y <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Long</SPAN><br><SPAN style="color:#00007F">Dim</SPAN> lCounter <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Long</SPAN><br> <br> <SPAN style="color:#00007F">Set</SPAN> rngColored = Sheet1.Range("A3:P23")<br> aryColored = rngColored.Value<br> <br> <SPAN style="color:#00007F">For</SPAN> <SPAN style="color:#00007F">Each</SPAN> Cell <SPAN style="color:#00007F">In</SPAN> rngColored.Cells<br> <SPAN style="color:#00007F">If</SPAN> Cell.Interior.ColorIndex = 8 <SPAN style="color:#00007F">Then</SPAN><br> aryColored(Cell.Row - 2, Cell.Column) = vbNullString<br> <SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">If</SPAN><br> <SPAN style="color:#00007F">Next</SPAN><br> <br> lCounter = 0<br> <SPAN style="color:#00007F">For</SPAN> x = 1 <SPAN style="color:#00007F">To</SPAN> 21<br> <SPAN style="color:#00007F">For</SPAN> y = 1 <SPAN style="color:#00007F">To</SPAN> 16<br> <SPAN style="color:#00007F">If</SPAN> <SPAN style="color:#00007F">Not</SPAN> aryColored(x, y) = vbNullString <SPAN style="color:#00007F">Then</SPAN><br> lCounter = lCounter + 1<br> aryOutput(lCounter, 1) = aryColored(x, y)<br> <SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">If</SPAN><br> <SPAN style="color:#00007F">Next</SPAN><br> <SPAN style="color:#00007F">Next</SPAN><br> Sheet2.Range("A3").Resize(336).Value = aryOutput<br><SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN></FONT>
Please note the 'Sheet1' and 'Sheet2' represent CodeNames of the sheets.
Hope that helps,
Mark