Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Assigning custom commandbar buttons FaceID numbers

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?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default Assigning custom commandbar buttons FaceID numbers

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
_______


wrote in message
oups.com...
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?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Assigning custom commandbar buttons FaceID numbers

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.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default Assigning custom commandbar buttons FaceID numbers

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
_______



wrote in message
oups.com...
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
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
How to exchange Custom Commandbar buttons between PC's? Frank Van Eygen[_2_] Excel Discussion (Misc queries) 3 April 10th 09 01:01 PM
New custom FaceID for automated button Mike Excel Programming 3 January 9th 06 03:58 PM
Assigning macros to buttons on a custom toolbar Jack_Feeman Excel Programming 16 August 24th 05 05:36 PM
own-made FaceID 's or command buttons in menu bar Oscar Excel Programming 1 December 6th 03 01:57 AM
assigning macros to several custom buttons Greg Wilson[_3_] Excel Programming 0 August 12th 03 11:52 PM


All times are GMT +1. The time now is 10:23 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"