I don't get an error (Excel 2003). What error are you getting?(each declare statement was split over two lines. I assumethat they are each on one line in your code?)