PC Review


Reply
Thread Tools Rate Thread

How to Activate and Dropdown a Combo Box

 
 
PosseJohn
Guest
Posts: n/a
 
      26th Nov 2008
I have a sheet with 2 dropdown combo boxes. Each box overlays on the output
cell for the combo box.

I have a Worksheet_SelectionChange event that detects when either output
cell is selected by the user.

How do I activate the Combo Box and dropdown its list?

 
Reply With Quote
 
 
 
 
Alan Moseley
Guest
Posts: n/a
 
      26th Nov 2008
Lets say that your ComboBox name is MyCombo. You need to include the code:-

MyCombo.DropDown
MyCombo.Activate
--
Alan Moseley IT Consultancy
http://www.amitc.co.uk

If I have solved your problem, please click Yes below. Thanks.


"PosseJohn" wrote:

> I have a sheet with 2 dropdown combo boxes. Each box overlays on the output
> cell for the combo box.
>
> I have a Worksheet_SelectionChange event that detects when either output
> cell is selected by the user.
>
> How do I activate the Combo Box and dropdown its list?
>

 
Reply With Quote
 
PosseJohn
Guest
Posts: n/a
 
      26th Nov 2008
That somewhat worked...something strange occurs when the code runs.

It presents the dropdown list at the top of the worksheet window and not
below where the combo box resides.

Do I need to lockdown the combo box somehow?


"Alan Moseley" wrote:

> Lets say that your ComboBox name is MyCombo. You need to include the code:-
>
> MyCombo.DropDown
> MyCombo.Activate
> --
> Alan Moseley IT Consultancy
> http://www.amitc.co.uk
>
> If I have solved your problem, please click Yes below. Thanks.
>
>
> "PosseJohn" wrote:
>
> > I have a sheet with 2 dropdown combo boxes. Each box overlays on the output
> > cell for the combo box.
> >
> > I have a Worksheet_SelectionChange event that detects when either output
> > cell is selected by the user.
> >
> > How do I activate the Combo Box and dropdown its list?
> >

 
Reply With Quote
 
Alan Moseley
Guest
Posts: n/a
 
      26th Nov 2008
In design mode right-click your combo and choose format control. Click on
the properties tab. Select Dont move or size with cells. Does this help?
--
Alan Moseley IT Consultancy
http://www.amitc.co.uk

If I have solved your problem, please click Yes below. Thanks.


"PosseJohn" wrote:

> That somewhat worked...something strange occurs when the code runs.
>
> It presents the dropdown list at the top of the worksheet window and not
> below where the combo box resides.
>
> Do I need to lockdown the combo box somehow?
>
>
> "Alan Moseley" wrote:
>
> > Lets say that your ComboBox name is MyCombo. You need to include the code:-
> >
> > MyCombo.DropDown
> > MyCombo.Activate
> > --
> > Alan Moseley IT Consultancy
> > http://www.amitc.co.uk
> >
> > If I have solved your problem, please click Yes below. Thanks.
> >
> >
> > "PosseJohn" wrote:
> >
> > > I have a sheet with 2 dropdown combo boxes. Each box overlays on the output
> > > cell for the combo box.
> > >
> > > I have a Worksheet_SelectionChange event that detects when either output
> > > cell is selected by the user.
> > >
> > > How do I activate the Combo Box and dropdown its list?
> > >

 
Reply With Quote
 
PosseJohn
Guest
Posts: n/a
 
      26th Nov 2008
No, that didn't prevent occurence.

"Alan Moseley" wrote:

> In design mode right-click your combo and choose format control. Click on
> the properties tab. Select Dont move or size with cells. Does this help?
> --
> Alan Moseley IT Consultancy
> http://www.amitc.co.uk
>
> If I have solved your problem, please click Yes below. Thanks.
>
>
> "PosseJohn" wrote:
>
> > That somewhat worked...something strange occurs when the code runs.
> >
> > It presents the dropdown list at the top of the worksheet window and not
> > below where the combo box resides.
> >
> > Do I need to lockdown the combo box somehow?
> >
> >
> > "Alan Moseley" wrote:
> >
> > > Lets say that your ComboBox name is MyCombo. You need to include the code:-
> > >
> > > MyCombo.DropDown
> > > MyCombo.Activate
> > > --
> > > Alan Moseley IT Consultancy
> > > http://www.amitc.co.uk
> > >
> > > If I have solved your problem, please click Yes below. Thanks.
> > >
> > >
> > > "PosseJohn" wrote:
> > >
> > > > I have a sheet with 2 dropdown combo boxes. Each box overlays on the output
> > > > cell for the combo box.
> > > >
> > > > I have a Worksheet_SelectionChange event that detects when either output
> > > > cell is selected by the user.
> > > >
> > > > How do I activate the Combo Box and dropdown its list?
> > > >

 
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
Ctrl+Shift+S does not activate Styles dropdown =?Utf-8?B?SGFucw==?= Microsoft Word Document Management 2 15th Mar 2007 06:18 PM
Dropdown combo values dependent on another combo =?Utf-8?B?Q1c=?= Microsoft Access 3 3rd Feb 2007 03:02 PM
how to activate contact dropdown lists for e-mails =?Utf-8?B?TWFyeSBKbw==?= Microsoft Outlook Discussion 1 6th Feb 2006 05:25 AM
Dynamically Activate a Combo Box Greg Hoffman Microsoft Excel Programming 2 12th Jan 2006 04:47 AM
dropdown list to activate Macro Brad Microsoft Excel Programming 6 25th May 2005 08:35 PM


Features
 

Advertising
 

Newsgroups
 


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