Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Execute Autosum from within VBA

Status
Not open for further replies.

BLBlack

Technical User
Aug 24, 2008
1
US
I would like to execute Autosum from within VBA.
I have a "custom" tool bar with one button (autosum) on it.

The following code fragment that worked in Excel 2000 no longer work's in Excel 2003.

Dim cb as CommandBarButton
Set cb = CommandBars("Custom").Controls(1)
cb.Execute

The code does not crash, it simply does nothing.
For excel 2003, I believe Autosum is now an msoControlSplitButtonPopup; but I don't know how to make it work.


 
Have you tried to record a Macro? Even if its not right, it might point you in the right direction.

Chilly442
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top