Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
xlcharlie
 
Posts: n/a
Default Using a combo box in an Excel form

I'm experienced with Excel & VBA, but new to using Excel to create a form.

I would like to simply use a cell as a drop down. Not knowing if that is
possible, I have added a combo box to the spreasheet, but I am unclear how
the data entered/selected in the drop down will be stored. Is it stored as a
VB variable associated with the control or do I link the control to a cell to
store the data? To define the values in the drop down/combo box, do I have
to use cell references or can I write in the values in the properties
(writing them in hasn't worked for me)? Finally, what property do I have to
set for the combo box (ActiveX control) to automatically move & size with the
cell?

Direct answers, links to web sites, any help is greatly appreciated. Thanks
in advance.
  #2   Report Post  
JulieD
 
Posts: n/a
Default

Hi

the easiest way to get a drop down in a cell is to use data / validation -
Debra Dalgleish has great notes on her site at
www.contextures.com/tiptech.html
... look for Data Validation - Basics and then all the other stuff you can do
with it.

Cheers
JulieD


"xlcharlie" wrote in message
...
I'm experienced with Excel & VBA, but new to using Excel to create a form.

I would like to simply use a cell as a drop down. Not knowing if that is
possible, I have added a combo box to the spreasheet, but I am unclear how
the data entered/selected in the drop down will be stored. Is it stored
as a
VB variable associated with the control or do I link the control to a cell
to
store the data? To define the values in the drop down/combo box, do I
have
to use cell references or can I write in the values in the properties
(writing them in hasn't worked for me)? Finally, what property do I have
to
set for the combo box (ActiveX control) to automatically move & size with
the
cell?

Direct answers, links to web sites, any help is greatly appreciated.
Thanks
in advance.



  #3   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

If you just need a dropdown to select an item from a list you won't need any
VBA

http://www.contextures.com/xlDataVal01.html


--

Regards,

Peo Sjoblom


"xlcharlie" wrote in message
...
I'm experienced with Excel & VBA, but new to using Excel to create a form.

I would like to simply use a cell as a drop down. Not knowing if that is
possible, I have added a combo box to the spreasheet, but I am unclear how
the data entered/selected in the drop down will be stored. Is it stored

as a
VB variable associated with the control or do I link the control to a cell

to
store the data? To define the values in the drop down/combo box, do I

have
to use cell references or can I write in the values in the properties
(writing them in hasn't worked for me)? Finally, what property do I have

to
set for the combo box (ActiveX control) to automatically move & size with

the
cell?

Direct answers, links to web sites, any help is greatly appreciated.

Thanks
in advance.



  #4   Report Post  
xlcharlie
 
Posts: n/a
Default

what about if I want to set up a default value for the drop-down? Data
validation does not default to a particular selection.

"Peo Sjoblom" wrote:

If you just need a dropdown to select an item from a list you won't need any
VBA

http://www.contextures.com/xlDataVal01.html


--

Regards,

Peo Sjoblom


"xlcharlie" wrote in message
...
I'm experienced with Excel & VBA, but new to using Excel to create a form.

I would like to simply use a cell as a drop down. Not knowing if that is
possible, I have added a combo box to the spreasheet, but I am unclear how
the data entered/selected in the drop down will be stored. Is it stored

as a
VB variable associated with the control or do I link the control to a cell

to
store the data? To define the values in the drop down/combo box, do I

have
to use cell references or can I write in the values in the properties
(writing them in hasn't worked for me)? Finally, what property do I have

to
set for the combo box (ActiveX control) to automatically move & size with

the
cell?

Direct answers, links to web sites, any help is greatly appreciated.

Thanks
in advance.




  #5   Report Post  
JulieD
 
Posts: n/a
Default

Hi Charlie

once you've set up data validation, type the "default" value in the cell. -
if you're using this workbook as a template it will always be there.

Cheers
JulieD



"xlcharlie" wrote in message
...
what about if I want to set up a default value for the drop-down? Data
validation does not default to a particular selection.

"Peo Sjoblom" wrote:

If you just need a dropdown to select an item from a list you won't need
any
VBA

http://www.contextures.com/xlDataVal01.html


--

Regards,

Peo Sjoblom


"xlcharlie" wrote in message
...
I'm experienced with Excel & VBA, but new to using Excel to create a
form.

I would like to simply use a cell as a drop down. Not knowing if that
is
possible, I have added a combo box to the spreasheet, but I am unclear
how
the data entered/selected in the drop down will be stored. Is it
stored

as a
VB variable associated with the control or do I link the control to a
cell

to
store the data? To define the values in the drop down/combo box, do I

have
to use cell references or can I write in the values in the properties
(writing them in hasn't worked for me)? Finally, what property do I
have

to
set for the combo box (ActiveX control) to automatically move & size
with

the
cell?

Direct answers, links to web sites, any help is greatly appreciated.

Thanks
in advance.








  #6   Report Post  
xlcharlie
 
Posts: n/a
Default

Nevermind, I think I found my answer.

"Peo Sjoblom" wrote:

If you just need a dropdown to select an item from a list you won't need any
VBA

http://www.contextures.com/xlDataVal01.html


--

Regards,

Peo Sjoblom


"xlcharlie" wrote in message
...
I'm experienced with Excel & VBA, but new to using Excel to create a form.

I would like to simply use a cell as a drop down. Not knowing if that is
possible, I have added a combo box to the spreasheet, but I am unclear how
the data entered/selected in the drop down will be stored. Is it stored

as a
VB variable associated with the control or do I link the control to a cell

to
store the data? To define the values in the drop down/combo box, do I

have
to use cell references or can I write in the values in the properties
(writing them in hasn't worked for me)? Finally, what property do I have

to
set for the combo box (ActiveX control) to automatically move & size with

the
cell?

Direct answers, links to web sites, any help is greatly appreciated.

Thanks
in advance.




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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Can I copy a combo box in Excel 2002 with a relative cell link? Bozo Excel Discussion (Misc queries) 1 February 17th 05 02:05 AM
Excel merge or data form (for invoice)..help!! LeeAnne Excel Worksheet Functions 1 February 1st 05 02:21 AM
merge excel form with excel datadase how can i do MY Broblem Excel Worksheet Functions 0 January 11th 05 03:07 AM
How do I set up a field in an Excel form to number it incremental. max Excel Worksheet Functions 1 November 29th 04 10:33 PM


All times are GMT +1. The time now is 07:03 PM.

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"