Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 106
Default in-cell on-the-fly list/combo box

I am not sure how to express this and thus have had no luck searching if it
has been asked before.

I have seen spreadsheets where, upon entering a cell which "accepts" certain
input (Yes/No, True/False etc), a list or combo box is "created" on the fly
within the cell and restricts input to the predefined values.

Can anyone explain how it is done or where I can find information?

Thanks for bearing with me!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 73
Default in-cell on-the-fly list/combo box

Look for help on: Data Validation.

Good Luck.

"DoctorG" wrote:

I am not sure how to express this and thus have had no luck searching if it
has been asked before.

I have seen spreadsheets where, upon entering a cell which "accepts" certain
input (Yes/No, True/False etc), a list or combo box is "created" on the fly
within the cell and restricts input to the predefined values.

Can anyone explain how it is done or where I can find information?

Thanks for bearing with me!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 106
Default in-cell on-the-fly list/combo box

Thanks ND Pard. I looked up "Data Validation" in Help and the following code
did the trick.

With ActiveCell.Validation
.Delete
.Add xlValidateList, xlValidAlertStop, xlBetween, "=ValuesRange"
.InCellDropdown = True
End With

"ND Pard" wrote:

Look for help on: Data Validation.

Good Luck.

"DoctorG" wrote:

I am not sure how to express this and thus have had no luck searching if it
has been asked before.

I have seen spreadsheets where, upon entering a cell which "accepts" certain
input (Yes/No, True/False etc), a list or combo box is "created" on the fly
within the cell and restricts input to the predefined values.

Can anyone explain how it is done or where I can find information?

Thanks for bearing with me!

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default in-cell on-the-fly list/combo box

Just so you are aware... you can do that from the menu bar as well (click
Data/Validation and fill-in the dialog box).

--
Rick (MVP - Excel)


"DoctorG" wrote in message
...
Thanks ND Pard. I looked up "Data Validation" in Help and the following
code
did the trick.

With ActiveCell.Validation
.Delete
.Add xlValidateList, xlValidAlertStop, xlBetween, "=ValuesRange"
.InCellDropdown = True
End With

"ND Pard" wrote:

Look for help on: Data Validation.

Good Luck.

"DoctorG" wrote:

I am not sure how to express this and thus have had no luck searching
if it
has been asked before.

I have seen spreadsheets where, upon entering a cell which "accepts"
certain
input (Yes/No, True/False etc), a list or combo box is "created" on the
fly
within the cell and restricts input to the predefined values.

Can anyone explain how it is done or where I can find information?

Thanks for bearing with me!


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 106
Default in-cell on-the-fly list/combo box

Weeeellllllll...... it was kinda easier than I thought......

Ok, Rick, point well taken : learn the basics, then move on.

Nevertheless I "touched" things I wouldn't have otherwise.

Thanks a lot, both of you !!!!!

Now what about the next question concerning Worksheet_Change after the
validation?

"Rick Rothstein" wrote:

Just so you are aware... you can do that from the menu bar as well (click
Data/Validation and fill-in the dialog box).

--
Rick (MVP - Excel)


"DoctorG" wrote in message
...
Thanks ND Pard. I looked up "Data Validation" in Help and the following
code
did the trick.

With ActiveCell.Validation
.Delete
.Add xlValidateList, xlValidAlertStop, xlBetween, "=ValuesRange"
.InCellDropdown = True
End With

"ND Pard" wrote:

Look for help on: Data Validation.

Good Luck.

"DoctorG" wrote:

I am not sure how to express this and thus have had no luck searching
if it
has been asked before.

I have seen spreadsheets where, upon entering a cell which "accepts"
certain
input (Yes/No, True/False etc), a list or combo box is "created" on the
fly
within the cell and restricts input to the predefined values.

Can anyone explain how it is done or where I can find information?

Thanks for bearing with me!





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default in-cell on-the-fly list/combo box

I don't see an earlier question from you regarding Worksheet_Change and your
brief mention of it is not enough to figure out what your actual need is
related to it... can you provide more detail please?

--
Rick (MVP - Excel)


"DoctorG" wrote in message
...
Weeeellllllll...... it was kinda easier than I thought......

Ok, Rick, point well taken : learn the basics, then move on.

Nevertheless I "touched" things I wouldn't have otherwise.

Thanks a lot, both of you !!!!!

Now what about the next question concerning Worksheet_Change after the
validation?

"Rick Rothstein" wrote:

Just so you are aware... you can do that from the menu bar as well (click
Data/Validation and fill-in the dialog box).

--
Rick (MVP - Excel)


"DoctorG" wrote in message
...
Thanks ND Pard. I looked up "Data Validation" in Help and the following
code
did the trick.

With ActiveCell.Validation
.Delete
.Add xlValidateList, xlValidAlertStop, xlBetween, "=ValuesRange"
.InCellDropdown = True
End With

"ND Pard" wrote:

Look for help on: Data Validation.

Good Luck.

"DoctorG" wrote:

I am not sure how to express this and thus have had no luck
searching
if it
has been asked before.

I have seen spreadsheets where, upon entering a cell which "accepts"
certain
input (Yes/No, True/False etc), a list or combo box is "created" on
the
fly
within the cell and restricts input to the predefined values.

Can anyone explain how it is done or where I can find information?

Thanks for bearing with me!




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
validation list or combo box dependant on cell value Richard Edwards[_2_] Excel Worksheet Functions 4 February 26th 09 01:04 PM
How to reference cell created from dropdown list in a combo box? Vishwas Excel Discussion (Misc queries) 1 December 2nd 08 02:41 PM
drop-down list(or combo-box) for the cell ali Excel Discussion (Misc queries) 2 September 12th 07 01:05 PM
Can I have automatic cell population while using combo list? rick Excel Discussion (Misc queries) 7 March 28th 06 05:28 AM
List Box or combo box into a cell aken Excel Programming 2 June 20th 05 09:17 AM


All times are GMT +1. The time now is 11:07 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"