Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Dimming Controls

I am developing a macro that has a UserForm with several controls (combo
boxes, list boxes, and option buttons). The option buttons are used to
determine whether or not a particular list box or combo box is enabled. If
an option button is deselected, the associated list box will not be enabled;
if the option button is selected, then the associated list box is enabled.

The Help file says that when a control is not enabled, it should appear
dimmed. Mine don't! The look the same regardless of whether or not they
are enabled.

The enabling/un-enabling is working, because when a list box is not enabled,
I can't select it.

Does anyone have any idea what I'm doing wrong?

Thanks.

David Benson


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 576
Default Dimming Controls

David,

Using Excel97 -

When Enabled is set to False
ComboBox scroll bar is greyed out.
List box looks the same but am unable to select anything
Command buttons are greyed out.

Make sure that your option button event code is correct. You need 2
code snippets...

Private Sub OptionButton1_Click()
ComboBox1.Enabled = True
End Sub
Private Sub OptionButton2_Click()
ComboBox1.Enabled = False
End Sub

--
sb
"David Benson" wrote in message
...
I am developing a macro that has a UserForm with several controls (combo
boxes, list boxes, and option buttons). The option buttons are used to
determine whether or not a particular list box or combo box is enabled.

If
an option button is deselected, the associated list box will not be

enabled;
if the option button is selected, then the associated list box is enabled.

The Help file says that when a control is not enabled, it should appear
dimmed. Mine don't! The look the same regardless of whether or not they
are enabled.

The enabling/un-enabling is working, because when a list box is not

enabled,
I can't select it.

Does anyone have any idea what I'm doing wrong?

Thanks.

David Benson




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
using gui controls daddy260 Excel Discussion (Misc queries) 4 May 25th 07 07:35 AM
Locking Controls Rob J Excel Discussion (Misc queries) 0 September 26th 06 02:57 PM
HTML Controls michael sharpe Excel Discussion (Misc queries) 0 September 6th 06 08:14 PM
dimming text shovelhead69 Excel Discussion (Misc queries) 1 June 13th 06 07:49 PM
ActiveX Controls vs Form Controls Alex Excel Discussion (Misc queries) 1 January 11th 06 08:46 AM


All times are GMT +1. The time now is 12:18 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"