Skip to content

Instantly share code, notes, and snippets.

@rediffusion
Created July 30, 2019 13:03
Show Gist options
  • Save rediffusion/a74830ef9563e432f2498142285d80ea to your computer and use it in GitHub Desktop.
Save rediffusion/a74830ef9563e432f2498142285d80ea to your computer and use it in GitHub Desktop.
Sub CallbackGetContent(control As IRibbonControl, ByRef XMLString)
Dim lngDummy As Long
Dim strDummy As String
Dim strContent As String
strDummy = "<menu xmlns=""http://schemas.microsoft"
strDummy = strDummy & ".com/office/2006/01/customui"">"
For lngDummy = 0 To 5
strContent = strContent & _
"<button id=""MyDynaButton" & lngDummy & _
""" label =""Dynamic Item" & _
lngDummy & """/>"
Next
strDummy = strDummy & strContent & " </menu>"
XMLString = strDummy
End Sub
getContent="CallbackGetContent"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment