Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Displaying a selected value from a combo box

Hi -

I have a combo box that is populated using an ADODB connection. My problem
is that i am able to view the list once i click on the drop button arrow, but
if a select a value, it doesn't appear in my combo box. I have tried to use
the listindex property but i am still unable to view the value that i select.
Any ideas would be greatly appreciated.

Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.programming
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Displaying a selected value from a combo box

how do you populate the combo box? do you use the drop button event and
somewhere in your code clear the combobox before you populate it? if you use
the drop down button event, i've had the same problem.

if i remember correctly, i've been able to store the combobox value to a
variable before i clear the combobox, then set the value back to what it was
before.

For example:

SelectedItem = Me.FileList.Value
Me.FileList.Clear
Me.FileList.Value = SelectedItem

good luck!


"LHaro" wrote:

Hi -

I have a combo box that is populated using an ADODB connection. My problem
is that i am able to view the list once i click on the drop button arrow, but
if a select a value, it doesn't appear in my combo box. I have tried to use
the listindex property but i am still unable to view the value that i select.
Any ideas would be greatly appreciated.

Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.programming
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Displaying a selected value from a combo box

sorry i missed the ADODB connection is used to populate the combobox. i'm
not very familiar with this.


"LHaro" wrote:

Hi -

I have a combo box that is populated using an ADODB connection. My problem
is that i am able to view the list once i click on the drop button arrow, but
if a select a value, it doesn't appear in my combo box. I have tried to use
the listindex property but i am still unable to view the value that i select.
Any ideas would be greatly appreciated.

Thanks.

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
selected value is not saved in combo box MarkDev Excel Discussion (Misc queries) 2 June 20th 06 09:41 PM
displaying selected items from a yearplanner in a timesheet James Excel Discussion (Misc queries) 0 October 22nd 05 04:30 PM
displaying a comment only when the cell is selected Jeff Excel Discussion (Misc queries) 2 July 6th 05 09:21 AM
displaying a comment only when the cell is selected Jeff Excel Discussion (Misc queries) 1 July 6th 05 08:18 AM
Displaying a Combo box in powerpoint mzee Excel Programming 1 September 21st 04 02:06 PM


All times are GMT +1. The time now is 10:10 AM.

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"