If you change the takefocusonclick property of the button to false
you don't see the 1004 error (bug in 97)
The code is working for me in Excel 97 as a sub and in the click event of the button
But if your colors are a result of Format conditional formatting it is not working.
Is that true ?
--
Regards Ron de Bruin
http://www.rondebruin.nl
"Ian" wrote in message ...
On Tue, 5 Apr 2005 17:34:14 +0200, "Ron de Bruin"
wrote:
Is it working if you run the macro with Alt-F8 instead of
using the button
I hve put the code in a macro and run it with AltF8
and it does not work, does it does not show up n error.
Ian,