Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 119
Default Command button icons when disabled

I have three buttons on my worksheet. Under certain conditions (controlled by
macros), I set enable=true/false to enable/disable the buttons. I want to
make small buttons with icons. How do i make the icons 'grey out' to indicate
disabled?

Also, If I use icons on the buttons, how do I include the icons with the
workbook so the user doesn't have to have the *.ico files on their computer?
Or does that happen in some other fashion?

Thanks,
John

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 119
Default Command button icons when disabled

For those that are interested... I figured out a way.

I created a form and added buttons. For each command on my main form, I
created two buttons. On one button I put in the picture property the
'enabled' state and on the other I put the 'disabled' state.

Then in code I do the following:

'To disable
Sheet2.cmdCopyTmpl.Enabled = False
Sheet2.cmdCopyTmpl.Picture = frmButtonImages.imgCopyTmplDisable.Picture

' to enable
Sheet2.cmdCopyTmpl.Enabled = True
Sheet2.cmdCopyTmpl.Picture = frmButtonImages.imgCopyTmplEnable.Picture


"DocBrown" wrote:

I have three buttons on my worksheet. Under certain conditions (controlled by
macros), I set enable=true/false to enable/disable the buttons. I want to
make small buttons with icons. How do i make the icons 'grey out' to indicate
disabled?

Also, If I use icons on the buttons, how do I include the icons with the
workbook so the user doesn't have to have the *.ico files on their computer?
Or does that happen in some other fashion?

Thanks,
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
Toolbars & command disabled dgold82 Excel Programming 1 April 27th 09 07:53 PM
Deselect Command Button by Selecting another Command Button gmcnaugh[_2_] Excel Programming 3 September 2nd 08 05:59 PM
How can I edit command bar icons in Excel 2007? Marley the Cat Setting up and Configuration of Excel 1 August 23rd 08 11:35 AM
How do I show toolbar command titles when pointing at the icons? Gail Excel Discussion (Misc queries) 2 September 23rd 07 08:59 PM
How do I avoid multiple icons of Excel when using short command Al DVA Excel Discussion (Misc queries) 2 April 26th 05 07:09 AM


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