I've created a custom Powerpoint add-in (ppam) using the following code (from this tutorial https://www.rdpslides.com/pptfaq/FAQ00031_Create_an_ADD-IN_with_TOOLBARS_that_run_macros.htm):
Sub Auto_Open()
Dim oToolbar As CommandBar
Dim oButton As CommandBarButton
Dim MyToolbar As String
MyToolbar = "My toolbar"
On Error Resume Next
Set oToolbar = CommandBars.Add(Name:=MyToolbar, _
Position:=msoBarFloating, Temporary:=True)
If Err.Number <> 0 Then
Exit Sub
End If
On Error GoTo ErrorHandler
Set oButton = oToolbar.Controls.Add(Type:=msoControlButton)
With oButton
'repeat code for each button'
End With
oToolbar.Visible = True
NormalExit:
Exit Sub
ErrorHandler:
MsgBox Err.Number & vbCrLf & Err.Description
Resume NormalExit:
End Sub
It works well, and I've been able to add multiple buttons to the Add-in toolbar. However, all buttons crowd on the same row, and I would really like to have a row-break, in order to fit more buttons in the toolbar overview.
I've tried to create separate add-in's for them to display on separate rows, but that just leads to one of the add-ins not showing. Is there a way to add a row-break to the add-in?