A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Just as a thought, and to save the complication of a macro, could the data you need in the sheet '3 Draws' be achieved with the use of a formula?
To do this copy the following formula to cell B6 in the '3 Draws' sheet and then copy down the table, the count of occurrences that the number in column A appears in the last three draws is calculated.
=COUNTIF(INDIRECT("Lotto!$C$"&Maxdrawno&":$H$"&Maxdrawno + 2),A6)
As more rows of draws get added, so the range returned for the last three rows will move dynamically. This is because the last draw number (in the named range Maxdrawno) is coincidentally the row number required for the start of the range returned in the INDIRECT part of the formula.
This would also mean that the numbers 1 through 49 at the bottom of the table could be romoved.
Just a thought...