PC Review


Reply
Thread Tools Rate Thread

Combobox Dropdown method

 
 
james.billy@gmail.com
Guest
Posts: n/a
 
      18th Dec 2006
All,

I have a combo box on a worksheet, which is made visible if a
particular cell is selected, I added the dropdown method to display the
combo box with the list automatically visible should someone select
that cell, the only problem is that if the user clicks on another cell
without selecting some thing from the combobox the list doesn't go
away. I have some code that makes the combobox invisible again but
cannot find a method to close the list. Anyone got any ideas?

Cheers in advance,

James

 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      18th Dec 2006
Can we see the code? what sort of combo, forms or control toolbox?

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> All,
>
> I have a combo box on a worksheet, which is made visible if a
> particular cell is selected, I added the dropdown method to display the
> combo box with the list automatically visible should someone select
> that cell, the only problem is that if the user clicks on another cell
> without selecting some thing from the combobox the list doesn't go
> away. I have some code that makes the combobox invisible again but
> cannot find a method to close the list. Anyone got any ideas?
>
> Cheers in advance,
>
> James
>



 
Reply With Quote
 
james.billy@gmail.com
Guest
Posts: n/a
 
      18th Dec 2006
Hi,

Its from the control toolbox, the code is run from the worksheet
selection change event, basically its to replace the in cell validation
that I was using, the reason I went down this route was that the sheet
is zoomed to about 70% and at this level the validation is barealy
ledgible. The code is:

ActiveSheet.CellMenu.Top = ActiveCell.Top + 18
ActiveSheet.CellMenu.Left = ActiveCell.Left
ActiveSheet.CellMenu.Visible = True
ActiveSheet.CellMenu.DropDown
ActiveSheet.CellMenu.ListIndex = -1

Then if the user clicks on another cell then I just make the combobox
inivisible but the dropdown doesn't go away as the user hasn't clicked
anything. The CellMenu is just a comob box that has an onclick event
that puts the value of the combobox in the activecell.

Cheers,

James

Bob Phillips wrote:
> Can we see the code? what sort of combo, forms or control toolbox?
>
> --
> ---
> HTH
>
> Bob
>
> (change the xxxx to gmail if mailing direct)
>
>
> <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > All,
> >
> > I have a combo box on a worksheet, which is made visible if a
> > particular cell is selected, I added the dropdown method to display the
> > combo box with the list automatically visible should someone select
> > that cell, the only problem is that if the user clicks on another cell
> > without selecting some thing from the combobox the list doesn't go
> > away. I have some code that makes the combobox invisible again but
> > cannot find a method to close the list. Anyone got any ideas?
> >
> > Cheers in advance,
> >
> > James
> >


 
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
Problem with Combobox.Dropdown method =?Utf-8?B?RkNsaWZ0b24=?= Microsoft Excel Programming 2 7th Mar 2007 02:35 PM
Dropdown for Combobox =?Utf-8?B?amR5b24=?= Microsoft Word Document Management 9 11th Aug 2006 08:22 PM
Re: Bug: Combobox.dropdown = True during Form.Load event handler causes listbox to be disabled, even though combobox is Enabled. Herfried K. Wagner [MVP] Microsoft Dot NET Framework Forms 0 12th Feb 2004 10:00 PM
Bug: Combobox.dropdown = True during Form.New() causes listbox to be disabled, even though combobox is Enabled. =?Utf-8?B?UmF0a2lsZXk=?= Microsoft Dot NET Framework Forms 1 12th Feb 2004 09:58 PM
Bug: Combobox.dropdown = True during Form.Load event handler causes listbox to be disabled, even though combobox is Enabled. =?Utf-8?B?UmF0a2lsZXk=?= Microsoft Dot NET Framework 0 12th Feb 2004 07:16 PM


Features
 

Advertising
 

Newsgroups
 


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