Functions Trigger
Thanks Norman.
It works well.
How can I repeat this VBA command until all autosum formulae are set up in a
column where list of values are there. I want to insert the autosum
formulae with variable sum ranges.
Rgds,
"Norman Jones" wrote:
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,
|