Sub Sample1()
Dim i As Long
With Application.CommandBars("AutoCalculate")
For i = 1 To 7
If .Controls(i).State Then
MsgBox .Controls(i).Caption
Exit For
End If
Next i
End With
End Sub
Sub Sample2()
With Application.CommandBars("AutoCalculate")
If .Controls(7).State = False Then
.Controls(7).Execute
MsgBox "「合計」にしました"
End If
End With
End Sub