H
hstijnen
Hi,
I'm trying to create a .xla that creates some new menu or toolbar items to
call its functions. Using Excel 2000 VBA. That works. Now I want to add a
custom made icon to the new item.
I've found some usefull code:
Set SubMenu = CommandBars(â€Sculptâ€).Controls(â€SculptIconâ€)
With SubMenu
.Picture = LoadPicture(strPath & “Sculpt.bmpâ€)
.Mask = LoadPicture(strPath & “SculptMask.bmpâ€)
End With
However I get an error for:
.Picture = LoadPicture(strPath & “Sculpt.bmpâ€)
Picture seems not a member of CommandBarControl. And in Help I cannot find it.
What is the matter? Does it only work from Excel 2003 and not in Excel 2000?
Any suggestions?
Regards, Henkl
I'm trying to create a .xla that creates some new menu or toolbar items to
call its functions. Using Excel 2000 VBA. That works. Now I want to add a
custom made icon to the new item.
I've found some usefull code:
Set SubMenu = CommandBars(â€Sculptâ€).Controls(â€SculptIconâ€)
With SubMenu
.Picture = LoadPicture(strPath & “Sculpt.bmpâ€)
.Mask = LoadPicture(strPath & “SculptMask.bmpâ€)
End With
However I get an error for:
.Picture = LoadPicture(strPath & “Sculpt.bmpâ€)
Picture seems not a member of CommandBarControl. And in Help I cannot find it.
What is the matter? Does it only work from Excel 2003 and not in Excel 2000?
Any suggestions?
Regards, Henkl