Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Slightly more refined
Dim lastRange As Range Private Sub Worksheet_SelectionChange(ByVal Target As Range) On Error Resume Next If (lastRange.Address = "$A$1") Then If (lastRange.Value Range("B1")) Then lastRange.Value = 120 End If End If On Error GoTo 0 Set lastRange = Target End Sub "stormy" wrote: You could write some VB to do this, however cumbersome it may be. Assuming that the cell you want to become 120 is "A1" and the 'X' is in cell "B1": <snip Its up to you to detect the cell you want to change, to find the value for X, to properly initialize lastRange, and to determine if this is more hassle (and overhead) than its worth! "SeattleBumm" wrote: My email address is I want to have a cell such that if the number in the cell is greater than X, the formula puts 120 in the cell. Thanks for your help! Please send me an email if you know how to do this! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Match then lookup | Excel Worksheet Functions | |||
Formula Problem - interrupted by #VALUE! in other cells!? | Excel Worksheet Functions | |||
Formula checking multiple worksheets | Excel Worksheet Functions | |||
Creating a check mark box | Setting up and Configuration of Excel | |||
Match / Vlookup within an Array formula | Excel Discussion (Misc queries) |