Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have data validation done in a cell. There are ten items in the dropdown list. I wish to write a code which selects the item from dropdown as put it in the cell. Please help me with a macro which selects fourth itme in the dropdown and puts it in the cell. Thanks! Boss |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Boss,
For XL2000 onward (split wasn't available in XL97) Written for the activecell: ActiveCell.Value = Split(ActiveCell.Validation.Formula1, ",")(3) Written for a specific cell: Range("A10").Value = Split(Range("A10").Validation.Formula1, ",")(3) HTH, Bernie MS Excel MVP "Boss" wrote in message ... Hi, I have data validation done in a cell. There are ten items in the dropdown list. I wish to write a code which selects the item from dropdown as put it in the cell. Please help me with a macro which selects fourth itme in the dropdown and puts it in the cell. Thanks! Boss |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You are using a Validation List (items displayed in list are from a defined
range such as $Z$1:$Z$10), right? If so, for the active cell... ActiveCell.Value = Range(ActiveCell.Validation.Formula1)(3).Value or for a specified cell (say A3)... Range("A3").Value = Range(Range("A3").Validation.Formula1)(3).Value -- Rick (MVP - Excel) "Boss" wrote in message ... Hi, I have data validation done in a cell. There are ten items in the dropdown list. I wish to write a code which selects the item from dropdown as put it in the cell. Please help me with a macro which selects fourth itme in the dropdown and puts it in the cell. Thanks! Boss |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thankyou bith for teh reply...
You guys made my day.. !! Thanks! Boss "Boss" wrote: Hi, I have data validation done in a cell. There are ten items in the dropdown list. I wish to write a code which selects the item from dropdown as put it in the cell. Please help me with a macro which selects fourth itme in the dropdown and puts it in the cell. Thanks! Boss |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
select From dropdown and return another dropdown menu | Excel Discussion (Misc queries) | |||
User Form with dropdown item | Excel Discussion (Misc queries) | |||
dropdown box item to display a message | Excel Programming | |||
Select an item from dropdown list but return value from adjacent c | Excel Discussion (Misc queries) | |||
How can I set up to chose more than 1 item from a dropdown list (. | Excel Discussion (Misc queries) |