Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default CommandBars & Custom

I'm trying to change the FaceID of a custom button on a custom mene. I can
access the buttons on built in commandbars but not the custom menu as shown
below:

This works: ?application.Commandbars("Format").Controls.Item(1 ).Caption

This Doesnt ?application.Commandbars("Custom
Menu").Controls.Item(1).Caption

Any ideas?

--
John
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 178
Default CommandBars & Custom

Check spelling and spacing of your custom commandbar.
Remember that the commandbar name may be different than what you're seeing
on the screen. I have a commandbar called 'Amigo'.
I just tried both...

?application.Commandbars("Amigo").Controls.Item(1) .Caption
and
?application.Commandbars("amigo").Controls.Item(1) .Caption

They worked perfectly.

--
HTH,
Gary Brown

If this post was helpful to you, please select ''YES'' at the bottom of the
post.



"John JBM" wrote:

I'm trying to change the FaceID of a custom button on a custom mene. I can
access the buttons on built in commandbars but not the custom menu as shown
below:

This works: ?application.Commandbars("Format").Controls.Item(1 ).Caption

This Doesnt ?application.Commandbars("Custom
Menu").Controls.Item(1).Caption

Any ideas?

--
John

Reply
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
CommandBars vs CommandBars(1).Controls Sean Excel Programming 3 April 3rd 06 01:34 PM
Bulk-Delete All Custom Commandbars KL[_6_] Excel Programming 4 December 10th 04 01:39 PM
Prob: Custom CommandBars and .xls Files Being Re-Opened James Cox[_2_] Excel Programming 0 October 19th 04 03:34 PM
Custom faces for custom menus/commandbars Stu Valentine Excel Programming 1 September 17th 04 04:28 AM
Question on custom commandbars Mark Reynolds Excel Programming 3 January 23rd 04 11:55 PM


All times are GMT +1. The time now is 11:26 AM.

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

About Us

"It's about Microsoft Excel"