Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I previously posted:
Somebody must know: In Excel 2000 I was able to use the following code to add the Autosum control to a custom toolbar: Add(msoControlButton, 226) In Excel 2003 this doesn't seem to work anymore - anyone know what number it is now? Any help greatly appreciated, Jason. I've since found control button ID 2018 which says 'Sum' but doesn't seem to autosum? I could use a random faceID and add a routine of my own but it'd be a lot easier if I could expose Excel's built in function. Help appreciated, Jason |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I recorded a macro when I added autosum to a test toolbar:
Application.CommandBars("Custom 1").Controls.Add _ Type:=msoControlSplitButtonPopup, ID:=226, Befo=2 Notice the difference in type. Now back to excel and notice that the autosum button in xl2003 (maybe xl2002????) has been enhanced to include a dropdown arrow that gives more functionality. WhytheQ wrote: I previously posted: Somebody must know: In Excel 2000 I was able to use the following code to add the Autosum control to a custom toolbar: Add(msoControlButton, 226) In Excel 2003 this doesn't seem to work anymore - anyone know what number it is now? Any help greatly appreciated, Jason. I've since found control button ID 2018 which says 'Sum' but doesn't seem to autosum? I could use a random faceID and add a routine of my own but it'd be a lot easier if I could expose Excel's built in function. Help appreciated, Jason -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dave: you've dug me out of a hole once again!!
Obviously I didn't realise that this could be recorded: but I do now, which is excellent. Thanks again, Jason. Dave Peterson wrote: I recorded a macro when I added autosum to a test toolbar: Application.CommandBars("Custom 1").Controls.Add _ Type:=msoControlSplitButtonPopup, ID:=226, Befo=2 Notice the difference in type. Now back to excel and notice that the autosum button in xl2003 (maybe xl2002????) has been enhanced to include a dropdown arrow that gives more functionality. WhytheQ wrote: I previously posted: Somebody must know: In Excel 2000 I was able to use the following code to add the Autosum control to a custom toolbar: Add(msoControlButton, 226) In Excel 2003 this doesn't seem to work anymore - anyone know what number it is now? Any help greatly appreciated, Jason. I've since found control button ID 2018 which says 'Sum' but doesn't seem to autosum? I could use a random faceID and add a routine of my own but it'd be a lot easier if I could expose Excel's built in function. Help appreciated, Jason -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Dave phlogiston appears in spreadsheet cell when I type Dave P | Excel Discussion (Misc queries) | |||
Dave Peterson | Excel Discussion (Misc queries) | |||
to Dave Peterson | Excel Discussion (Misc queries) | |||
Dave - | Excel Programming | |||
ATTN: KEEPITCOOL | Excel Programming |