PC Review


Reply
Thread Tools Rate Thread

Assigning custom commandbar buttons FaceID numbers

 
 
lunsfld@gmail.com
Guest
Posts: n/a
 
      6th Jul 2007
I have several custom buttons that I have created in Excel that I
would like to load into a commandbar that is created when an xla file
opens. Does anyone know of a way to assign a "blank" FaceID number to
my custom buttons? In other words, can I add my custom buttons to the
Excel library of FaceID's?

 
Reply With Quote
 
 
 
 
Jon Peltier
Guest
Posts: n/a
 
      6th Jul 2007
You cannot add your custom button images to Excel's list of FaceIDs.
However, you can copy the button image from an embedded picture in a
worksheet, and paste it onto a button:

ActiveWorksheet.Shapes("MyButton").CopyPicture xlScreen, xlBitmap
MyCommandButton.PasteFace

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have several custom buttons that I have created in Excel that I
> would like to load into a commandbar that is created when an xla file
> opens. Does anyone know of a way to assign a "blank" FaceID number to
> my custom buttons? In other words, can I add my custom buttons to the
> Excel library of FaceID's?
>



 
Reply With Quote
 
lunsfld@gmail.com
Guest
Posts: n/a
 
      6th Jul 2007
Thanks Jon! Now I just have to figure out how to get my custom button
images into and embedded picture in a worksheet. Thanks again.

 
Reply With Quote
 
Jon Peltier
Guest
Posts: n/a
 
      7th Jul 2007
1. Insert menu > Picture > From File

or

2. Copy in graphics program, hold Shift while selecting Edit Menu > Paste
Picture.

When the picture is selected, go to the Name box (above cell A1, where it
says "Picture 1" or something similar), and type a useful name. In my
example I used "MyButton" but if you have several, use descriptive names for
what each button will do.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______



<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks Jon! Now I just have to figure out how to get my custom button
> images into and embedded picture in a worksheet. Thanks again.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to exchange Custom Commandbar buttons between PC's? Frank Van Eygen Microsoft Excel Misc 3 10th Apr 2009 01:01 PM
Custom Image added to CommandBar Buttons Andrew Microsoft Outlook Program Addins 2 26th Nov 2008 02:26 PM
Option Button FaceID in a custom commandbar atpgroups Microsoft Excel Programming 1 7th May 2008 09:29 PM
Using FaceId for CommandBar Icons in a commercial application satpp Microsoft Excel Programming 0 24th Mar 2008 06:45 PM
Function offering: a way of automatically assigning faceid's to buttons kelly d via AccessMonster.com Microsoft Access VBA Modules 1 7th Nov 2005 02:13 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:59 PM.