Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Clicking on a List item

A drop-down list has choices MARRIED or SINGLE.

When a user selects MARRIED, I'd like A1 to show "You
are married", and "You are single" if the choice is later
changed to SINGLE. Can this be done? How can Excel "know"
that a certain selection was made from the list?????????
Is this what's called a "click-event"?

Thanks!
Paul


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 620
Default Clicking on a List item

Paul,

Depends what the drop-down is. If it's data validation, just test the value
of the cell. If its a control toolbox combobox, link the result to a cell
and test that.

Then its just a simple IF test

=IF(C1="MARRIED","You are married", "You are single")

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Paul" wrote in message
...
A drop-down list has choices MARRIED or SINGLE.

When a user selects MARRIED, I'd like A1 to show "You
are married", and "You are single" if the choice is later
changed to SINGLE. Can this be done? How can Excel "know"
that a certain selection was made from the list?????????
Is this what's called a "click-event"?

Thanks!
Paul




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
I need to pair each item on one list to each item on another list Peter R. Excel Worksheet Functions 1 August 24th 07 03:04 AM
Menu Item disappeared after double-clicking xls H@C0 Excel Discussion (Misc queries) 1 July 19th 07 02:23 PM
How do I return a value by clicking an associated list box item rpbsr Excel Worksheet Functions 1 September 1st 06 01:41 AM
Selecting an Item from a List and getting a different item to pop. Matt Excel Worksheet Functions 1 December 7th 04 02:37 PM
Lists: Clicking on one item in one list and getting certain info i Matt Excel Worksheet Functions 1 November 12th 04 05:17 AM


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