Auitofilter and copy down (Excel 2003)

If I have a list and use the autofilter to filter data. If I put a formula in 1 of the filtered cells and use the copy down function when will it copy to all the cells down and when only the visible cells. Are there any rules. Sometimes if you copy it copies to all the cells other times only the visible cells