Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default change of button properties upon activation

What kind of button

On the worksheet you could use a button from the Forms Toolbar or a
commandbutton from the Control toolbox toolbar. If you are talking about
menus, then you would be using a commandbarbutton.

In a commandbarbutton, the background color is controlled by windows. Don't
believe you can change that. Same for a forms button, but you can change it
for a Commandbutton. Just put the code to change it in the event.

For a commandbarbutton you can get your picture in the clipboard, then use
the pasteface method. In a commandbutton, you have a picture property you
can set to the name of a file.

--
Regards,
Tom Ogilvy

"Jos reulen" wrote in message
...
I use selfmade buttons in excel linked to execution of a
macro. I would like to change properties of the button
upon activation for example a change of background color
or a change of the button image (crying face into laughing
face). How?
Furthermore, in Excel I have a limited number of figures
available to use as image in a button to which a macro
execution is coupled. how can i insert different figures
of all kind in a button ?

thank you
jos reulen



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
Command Button Properties FredL Excel Discussion (Misc queries) 2 February 14th 08 08:20 PM
button properties Narasimha Excel Discussion (Misc queries) 4 October 16th 07 10:38 PM
command button properties gbeard Excel Worksheet Functions 4 April 21st 05 06:02 AM
Spinner Button properties Ledge1 Excel Discussion (Misc queries) 1 December 8th 04 12:15 AM
Command Button Properties Darren O'Connell Excel Programming 1 July 17th 03 09:34 AM


All times are GMT +1. The time now is 08:15 PM.

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"