PC Review


Reply
Thread Tools Rate Thread

Combobox Hiding Text behind

 
 
PMC1
Guest
Posts: n/a
 
      18th Apr 2007
Hi,

I'm using an activex combobox that I have placed over a cell on a
spreadsheet. The combobox refers to a table on another sheet and is
populated using additem and the DropButtonClick event.

***In order to clear the contents of the previous DropButtonClick I
use combobox.clear*** Is there any other way this should be performed?

Further, I use the click event to populate the cell behind the
combobox with the value selected by the user.

My problem is the selection made by the user disappears from the
combobox after selection. It seems the DropButtonClick event runs
twice (once when the list drops down and once when the list pops up
again). This results in the user selection disappearing from the
combobox as I have combobox.clear at the beginning of the
procedure!!.

To overcome this I tried changing the backstyle of the combobox to
Transparent so I could see the text in the cell behind but this
doesn't seem to make any difference.

The reason I'm using this control is because the list long and I can't
control the font size using either a Validation list or a standard
excel combobox. (Unless somebody can suggest a way this can be done?)

Does anybody have any suggestions? I assumed this would be an easy
task!!!!

Thanks in advance

Paul

 
Reply With Quote
 
 
 
 
merjet
Guest
Posts: n/a
 
      18th Apr 2007
Try moving your code to populate the ComboBox to the
Worksheet_Activate() procedure.

Hth,
Merjet

 
Reply With Quote
 
PMC1
Guest
Posts: n/a
 
      19th Apr 2007
On Apr 18, 5:25 pm, merjet <mer...@comcast.net> wrote:
> Try moving your code to populate the ComboBox to the
> Worksheet_Activate() procedure.
>
> Hth,
> Merjet


That did the trick, thanks Marjet

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dataridviewcomboboxcolumn / combobox hiding items RS Microsoft ASP .NET 0 7th Oct 2008 07:45 PM
Error hiding a combobox with a checkbox apweber@purdue.edu Microsoft Excel Programming 1 15th Sep 2006 09:18 PM
Hiding a ComboBox with a Checkbox AWeb Microsoft Excel Worksheet Functions 2 15th Sep 2006 01:30 PM
Hiding values in a combobox =?Utf-8?B?UDUxRCBNdXN0YW5n?= Microsoft Access Form Coding 4 27th Jun 2006 02:51 PM
Hiding a column in a multicolumn combobox Mike Jones Microsoft Excel Programming 1 3rd May 2005 12:44 AM


Features
 

Advertising
 

Newsgroups
 


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