Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Problem with action on range change
Greetings:
Im having difficulty getting a program to execute on a cell change (F31). Cell F31 is actually a 1R x 5C range of cells (F31-J31 merged) with a validation list. There are three possibilities in the list. The text for each possibility is long, but for simplicity, assume that I need all five cells and the values in the list are X, Y and Z. When the user selects a value from the list in F31, cells F59 and F67 should change. If the user chooses X in F31, I want F59 to show Yes and F67 to show No. If the user chooses Y in F31, I want F59 to show No and F67 to show Yes. If the user chooses Z in F31, I want F59 to show Yes and F67 to show Yes. If the user deletes the entry in F31, I want both F59 and F67 to go blank. The first three Ifs above work fine. However, when I delete an entry in F31, F59 and F67 do not change. Here is the relevant part of the code: If Target.Address = "$F$31" Then If MM.Range("F31") = "X" Then MM.Cells(59, 6) = "Yes" MM.Cells(67, 6) = "No" ElseIf MM.Range("F31") = "Y" Then MM.Cells(59, 6) = "No" MM.Cells(67, 6) = "Yes" ElseIf MM.Range("F31") = "Z" Then MM.Cells(59, 6) = "Yes" MM.Cells(67, 6) = "Yes" Else MM.Cells(59, 6) = "" MM.Cells(67, 6) = "" End If End If I notice that it DOES work if I unmerge the cells (and use ONLY F31 for real), but I really do need the five-cell range. Any ideas as to how I can get this to work? Help is appreciated. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Change to a Cell causes action | Excel Programming | |||
Change in action when converting to *.xla | Excel Programming | |||
Cell change causes action | Excel Programming | |||
Evaluate cells for change and then action | Excel Programming | |||
Automating a date field to change on certain action | Excel Programming |