ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Toolbar + import image (https://www.excelbanter.com/excel-programming/377216-toolbar-import-image.html)

Nader

Toolbar + import image
 
Hello,

I created a toolbar using vba but know I need to import via vba 3 icons I
made for my toolbar. How can I do that ?

Thanks in advance.

Nader


Nader

Toolbar + import image
 
i found the solution ... i have to use stdole ...

an example :

Dim picPicture As IPictureDisp
Set picPicture = stdole.StdFunctiond.LoadPicture("c:\icon_example.b mp")

.... some more code ...

With newItem
.Caption = "..."
.OnAction = "runMenu"
.Picture = picPicture
.Style = 3
End With



"Nader" wrote in message
...
Hello,

I created a toolbar using vba but know I need to import via vba 3 icons I
made for my toolbar. How can I do that ?

Thanks in advance.

Nader




All times are GMT +1. The time now is 01:55 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com