No attachment.
Also, I don't think a parameter will work the way you're intending it to. Might have to use macro instead... I'm not an expert though, someone chime in and give us some knowledge.
If you choose to go macro, you're going to get the For Next loop from 1 to the total number of...