Very strange... There is nothing in that code that should cause an
automation error.
Have you tried saving your document, closing Excel and re-opening it?
Also, is there any other code that runs in this workbook?
Ken Puls, CMA - Microsoft MVP (Excel)
www.excelguru.ca
Corey wrote:
Thnaks again.
I now get a different error when i run the simplified code you posted.
I get a :-
Automation error.
The object invoked has disconnected from its clients.
Never seen that before??