LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default How to create menu/toolbar item with picture?

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
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create a toolbar menu with Hyperlinks that access pages within the ROC Excel Discussion (Misc queries) 0 March 10th 07 01:57 AM
Add menu item to right-click menu [email protected] Excel Programming 1 July 15th 06 10:32 AM
Adding Sub Menu Item to Current Custom Menu Renato Excel Programming 2 December 19th 05 12:48 AM
Menu items added with menu item editor in older versions Michael Hoffmann Excel Discussion (Misc queries) 2 January 7th 05 01:40 PM
Adding a menu item right click menu when clicking on a single. Andoni[_28_] Excel Programming 0 September 2nd 04 10:23 PM


All times are GMT +1. The time now is 08:35 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"