i thought it is excel because you post it in Excel forum?
then what VBA program are you using?