Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() The reason: An excel.Picture object is not the same as a stdole.StdPicture either: for xl97 (non transparent) With ctl Sheet1.Shapes("Icon1").CopyPicture xlScreen, xlBitmap .PasteFace End With for xl2k+ i use an imagelist control on an (empty) userform to store the 256color bitmaps: the colored picture and the monochrome mask. The Picture property from an imagelist can be used for icons. code below is from an addin which needs to be xl97 compatible. #If VBA6 Then With ctlWizard cbr.Protection = msoBarNoProtection CallByName ctl, "picture", VbLet, _ frmIcons.iml.ListImages("pict").Picture CallByName ctl, "mask", VbLet, _ frmIcons.iml.ListImages("mask").Picture End With Unload frmAbout #End If -- keepITcool | www.XLsupport.com | keepITcool chello nl | amsterdam ckoch wrote : I'm trying to create a toolbar and having the same trouble everyone does with the button faces. This MS help topic is great: http://support.microsoft.com/?id=288771 HOWTO: Create a Transparent Picture For Office CommandBar Buttons It works when you load a picture from a bmp file.: Set oPic = LoadPicture("c:\testbmp.bmp") I also tried it by using a bmp loaded into a picturebox. Set oPic = Picture1.image But it doesn't work and doesn't give me a transparent button. Any idea why? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Creating a Custom commandbar button | Excel Programming | |||
Creating a Custom commandbar button | Excel Programming | |||
Custom Commandbar | Excel Programming | |||
Cannot create transparent XP CommandBar picture | Excel Programming | |||
Value of ComboBox on Custom CommandBar | Excel Programming |