Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 91
Default Combo Box Click Event

Hi, I'm having a bit of trouble selecting an item in a combo box.

I have set the row source, and the list of items and drop down box
function as expected. But I want to know if the user has clicked
something in the list

The click event doesn't respond the first time on item one, only items
two and greater. After that it's ok - but if you want the first item
with the first click - what do you do?

Thanks - Kirk
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Combo Box Click Event

Set ListIndex to -1 so that nothing is initially selected.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"kirkm" wrote in message
...
Hi, I'm having a bit of trouble selecting an item in a combo box.

I have set the row source, and the list of items and drop down box
function as expected. But I want to know if the user has clicked
something in the list

The click event doesn't respond the first time on item one, only items
two and greater. After that it's ok - but if you want the first item
with the first click - what do you do?

Thanks - Kirk



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 91
Default Combo Box Click Event

On Thu, 16 Aug 2007 08:13:32 +0100, "Bob Phillips"
wrote:

Set ListIndex to -1 so that nothing is initially selected.


Thanks Bob but I can't try that yet as I have another nasty.

The code is


Private Sub cboFiles_Click()

cboFiles.Visible = False
cboTheYear.Visible = True
cboTheYear.DropDown

End Sub


And the error message is

Run-time error '-2147417848 (80010108)':
Automation error
The object invoked has disconnected from its clients.

Help says something about setting On Error stuff but that's
not helping yet!

Any idea why what that error message is?

Thanks - Kirk
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 182
Default Combo Box Click Event

Hi,

Try to use MouseUp event
but it will fire all mouse up action with certain button or all mouse button.
--
Regards,

Halim



"kirkm" wrote:

Hi, I'm having a bit of trouble selecting an item in a combo box.

I have set the row source, and the list of items and drop down box
function as expected. But I want to know if the user has clicked
something in the list

The click event doesn't respond the first time on item one, only items
two and greater. After that it's ok - but if you want the first item
with the first click - what do you do?

Thanks - Kirk

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
Click event on menu item is lost after first time firing of the event [email protected] Excel Programming 1 April 2nd 07 01:25 PM
userform label double-click goes to click event John Paul Fullerton Excel Programming 3 May 19th 06 05:54 PM
Right-click Combo Event John[_88_] Excel Programming 2 September 19th 05 02:37 PM
Click event to run only once gavmer[_85_] Excel Programming 0 October 5th 04 12:18 AM
Click event to run only once gavmer[_83_] Excel Programming 0 October 1st 04 01:24 AM


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