Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Right click on the tab of the sheet you wish to have this behaviour.
In the menu click "View Code" In the VBA window that opens paste the following code (from '===== to '=====) ' ========================================== Private Sub Worksheet_Change(ByVal Target As Range) Dim cell As Range Application.EnableEvents = False For Each cell In Target Select Case LCase(cell.Text) Case "y", "yes" cell = "Yes" Case "n", "no" cell = "No" End Select Next cell Application.EnableEvents = True End Sub ' ========================================== I made it so that it will also take "no" for an answer. If you don't want this, remove the lines Case "n", "no" cell = "No" Greetz, Lex |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
If part of a cell = "NVA" then insert "Norfolk" in return cell | Excel Worksheet Functions | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
Help!!! Enter "7" in a cell and Excel changes the "7" to "11" immediately!!! | Excel Discussion (Misc queries) | |||
Can I enter a "Y" in a cell and have it return a "YES"? How? | Excel Programming |