Try:
<font face=Tahoma><SPAN style="color:#00007F">Sub</SPAN> CopyCells()
<SPAN style="color:#00007F">Dim</SPAN> cell <SPAN style="color:#00007F">As</SPAN> Range
<SPAN style="color:#00007F">For</SPAN> <SPAN style="color:#00007F">Each</SPAN> cell <SPAN style="color:#00007F">In</SPAN> [M1:M1000]
<SPAN style="color:#00007F">If</SPAN> cell.Value = 1 <SPAN style="color:#00007F">Then</SPAN> cell.Offset(0, -2).Copy Destination:= _
Sheets("Sheet2").[A65536].End(xlUp).Offset(1, 0)
<SPAN style="color:#00007F">Next</SPAN> cell
<SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN></FONT>