Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default Combobox.DropDown not working

Why does the Combobox not DropDown with the below?


If ComboBox2.Value < Sheets("References").Range("A2").Value Then
ComboBox23.Enabled = False
If ComboBox2.Value = Sheets("References").Range("A2").Value Then
ComboBox23.Enabled = True
ComboBox23.DropDown
End If


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 389
Default Combobox.DropDown not working

Maybe the datatypes are different? If so, here's one way to work around:


If CStr(ComboBox2.Value) = CStr(Sheets("References").Range("A2").Value) Then


--
Tim Zych
www.higherdata.com
Compare data in worksheets and find differences with Workbook Compare
A free, powerful, flexible Excel utility

"Corey ...." wrote in message
...
Why does the Combobox not DropDown with the below?


If ComboBox2.Value < Sheets("References").Range("A2").Value Then
ComboBox23.Enabled = False
If ComboBox2.Value = Sheets("References").Range("A2").Value Then
ComboBox23.Enabled = True
ComboBox23.DropDown
End If



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 770
Default Combobox.DropDown not working

Corey,

I don't know if you pasted the code straight from your program, but as it is
it won't compile. You don't have an End If for your first If. It looks
like it should really be an If Then Else construct.

hth,

Doug

"Corey ...." wrote in message
...
Why does the Combobox not DropDown with the below?


If ComboBox2.Value < Sheets("References").Range("A2").Value Then
ComboBox23.Enabled = False
If ComboBox2.Value = Sheets("References").Range("A2").Value Then
ComboBox23.Enabled = True
ComboBox23.DropDown
End If



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
ComboBox dropdown list? Tdp Excel Discussion (Misc queries) 0 October 14th 08 11:34 PM
combobox dropdown pswanie Excel Programming 6 January 19th 08 04:21 PM
Combobox Dropdown method [email protected] Excel Programming 2 December 18th 06 12:16 PM
USE OF DROPDOWN in Combobox-a problem davidm Excel Programming 4 July 6th 06 10:22 AM
ComboBox DropDown when Key is pressed shrekut[_9_] Excel Programming 2 February 2nd 04 11:30 PM


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