Thank you Malcolm,
I didn't understand what you meant by "Can you have a caption and a FaceID?" sorry
I was trying to do it like
it said the function was not defined, so I tried to put a Dim in but that didn't work either.Code:Sub AddCont(Menu, MyCap, MyAct,FaceId)
With Menu.Controls.Add(Type:=msoControlButton)
.Caption = MyCap
.OnAction = MyAct
End With
End Sub
Thank you very much for helping
Your way way works great
Nurofen