Hello abhay_547,

The code works fine for me and I'm using Excel 2003.