Is it possible to assign faceid to a control on a userform?

  • Thread starter Thread starter Edward
  • Start date Start date
E

Edward

Hi everybody,
I have found the complete list of FaceIDs and I know how to assign them to
toolbar commanbuttons, my question is how to assign those faceIDs to a
control in a userform? ( Like a button in my userform) is this possible?
 
You mean you want to execute the action corresponding to a CommandBarButton?
CommandBarButtons have an Execute() method that you can use if the button is
not disabled. PowerPoint 2007 also has CommandBars.ExecuteMso() method that
you can use.

For copying the image on a CommandBarButton, there is this CopyFace() method
that would copy the image to the clipboard. PowerPoint 2007 has
CommandBars.GetImageMso() method that returns you a Picture object with the
image in it.

- Chirag

PowerShow - View multiple PowerPoint slide shows simultaneously
http://officeone.mvps.org/powershow/powershow.html
 
Thanks Chirag,
As you might know office has many built in icons that we see them on
different menu command buttons , each icon has a faceID number that we can
use them to assign a particular icon to a custom command button that we might
create for our macros . We can't directly assign those faceID numbers to our
command button picture property although thier format is acceptable for
commandbuttons or any other control on our userform. I thought maybe someone
knows how to do this because as I said office has several hundreds of free
and beautiful icons built into the applications which we can use for our
userform controls.
--
Best regards,
Edward


Chirag said:
You mean you want to execute the action corresponding to a CommandBarButton?
CommandBarButtons have an Execute() method that you can use if the button is
not disabled. PowerPoint 2007 also has CommandBars.ExecuteMso() method that
you can use.

For copying the image on a CommandBarButton, there is this CopyFace() method
that would copy the image to the clipboard. PowerPoint 2007 has
CommandBars.GetImageMso() method that returns you a Picture object with the
image in it.

- Chirag

PowerShow - View multiple PowerPoint slide shows simultaneously
http://officeone.mvps.org/powershow/powershow.html
 
Hi,

If you take the code from these examples you can create some code that will
load the image into a userform command buttons picture property.

get a copy of the FaceID
http://www.oaltd.co.uk/DLCount/DLCount.asp?file=CBList.zip
http://www.oaltd.co.uk/DLCount/DLCount.asp?file=BtnFaces.zip

Paste picture into command button
http://www.oaltd.co.uk/DLCount/DLCount.asp?file=PastePicture.zip

Cheers
Andy

--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
Edward said:
Thanks Chirag,
As you might know office has many built in icons that we see them on
different menu command buttons , each icon has a faceID number that we can
use them to assign a particular icon to a custom command button that we
might
create for our macros . We can't directly assign those faceID numbers to
our
command button picture property although thier format is acceptable for
commandbuttons or any other control on our userform. I thought maybe
someone
knows how to do this because as I said office has several hundreds of
free
and beautiful icons built into the applications which we can use for our
userform controls.
 
Back
Top