Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 69
Default Combobox Dropdown method

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,726
Default Combobox Dropdown method

Can we see the code? what sort of combo, forms or control toolbox?

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


wrote in message
oups.com...
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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 69
Default Combobox Dropdown method

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)


wrote in message
oups.com...
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
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) 3 November 25th 08 10:03 PM
ComboBox dropdown list? Tdp Excel Discussion (Misc queries) 0 October 14th 08 11:34 PM
USE OF DROPDOWN in Combobox-a problem davidm Excel Programming 4 July 6th 06 10:22 AM
combo box dropdown method Peter Bailey[_2_] Excel Programming 5 October 31st 04 09:45 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 07:10 AM.

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"