Toolbar + import image

  • Thread starter Thread starter Nader
  • Start date Start date
N

Nader

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
 
i found the solution ... i have to use stdole ...

an example :

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

.... some more code ...

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top