View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Ron de Bruin Ron de Bruin is offline
external usenet poster
 
Posts: 11,123
Default Simulate click of AutoSum doesn't work in 2007

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.