Functions Trigger
Hi Frankie,
Try:
'=============
Public Sub DoAutoSum()
'/// Jim Rech
Dim x As CommandBarControl
Set x = CommandBars.FindControl(id:=226)
If Val(Application.Version) = 10 Then _
Set x = x.Controls(1)
x.Execute
If selection.Cells.Count = 1 Then
x.Execute
End If
End Sub
'<<=============
---
Regards,
Norman
"Frankie" wrote in message
...
Dear all,
I am eager to know how can the normal icons like "autosum" be triggered
(just like effect of clicking the icon) in VBA ?
Rgds,
|