Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello and help please!
In Excel XP, using VBA, is there a way to simulate a click of the "AutoSum" button on the toolbar to insert a sum formula into the current cell? If so, can you supply example code to do it? Thanks much in advance. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
PK,
Try the following: Application.CommandBars.FindControl(ID:=226).Contr ols(1).Execute Application.CommandBars.FindControl(ID:=226).Contr ols(1).Execute Yes, you need to execute it twice. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "pk" wrote in message ... Hello and help please! In Excel XP, using VBA, is there a way to simulate a click of the "AutoSum" button on the toolbar to insert a sum formula into the current cell? If so, can you supply example code to do it? Thanks much in advance. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Autosum button | Excel Worksheet Functions | |||
Autosum button performing subtotal | Excel Discussion (Misc queries) | |||
Shortcut Keystroke for the AutoSum button or Sum function? | Excel Discussion (Misc queries) | |||
How do I reinstall the autosum button? I cannot find it on Excel | Excel Worksheet Functions | |||
I need to renable autosum button | New Users to Excel |