Created
July 30, 2019 13:03
-
-
Save rediffusion/a74830ef9563e432f2498142285d80ea to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| getContent="CallbackGetContent" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment