Use this XP
Application.CommandBars.ExecuteMso ("AutoSum")
--
Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm
"XP" wrote in message ...
In the past I have used the following code line to simulate a click of the
"AutoSum" button.
Application.CommandBars("Standard").Controls("&Aut oSum").Execute
This doesn't work in 2007; recording the macro doesn't work either. Anyone
have an equivalent that works in 2007; if so could you please post?
Thanks in advance for your assistance.