
Sub TestExcel()
'Insert &Rows
Application.CommandBars.FindControl(ID:=296).Execute
'Format C&ells
Application.CommandBars.FindControl(ID:=855).Execute
'File Save &As
Application.CommandBars.FindControl(ID:=748).Execute
End Sub
Sub TestWord()
'Informazioni Word
Application.CommandBars.FindControl(ID:=927).Execute
'Finestra Zoom
Application.CommandBars.FindControl(ID:=925).Execute
'File Save &As
Application.CommandBars.FindControl(ID:=748).Execute
End Sub |
Sub GetAll_Submenu_Ids()
Dim ctrl As Object
For Each ctrl In CommandBars(6).Controls '.Controls(7).Controls '.Controls(8).Controls
MsgBox ctrl.Caption & Chr(13) & ctrl.ID
Next ctrl
End Sub
|
