Last active
July 30, 2019 13:06
-
-
Save rediffusion/ab1f9486003e898393107138226f42e8 to your computer and use it in GitHub Desktop.
NOTE: Для »» `Menu` и `Dynamic Menu` подходит тоже!
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
| Public Sub getImages(control As IRibbonControl, ByRef image) | |
| Set Image = LoadPicture(getAppPath & control.Tag) 'В `XML` ещё используется » “Tag”. | |
| image = "HappyFace" ' или ImageMso | |
| 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
| Function Значок(control As IRibbonControl, ByRef image) 'В `XML` файле пишем getImage="Значок". | |
| On Error GoTo выход | |
| Select Case control.ID 'Вставить идентификатор! | |
| Case "Кнопка": Set image = LoadPicture(ThisWorkbook.Path & "\TEST.jpg") | |
| ' Case "Кнопка": Set image = CommandBars.GetImageMso("FileOpen", 32, 32) | |
| End Select | |
| On Error GoTo 0 | |
| выход: | |
| End Function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment