Thanks Clifford, I think that the code you posted might just be what I need to get Excel to do what I want.