I am looking for some code that would loop until two cell values in excel equal the same. By cell value I mean the result of the formulas in the cells are the same.
This procedure needs to be run when a cells value changes, again I mean result of the formula in that cell changes.
For the loop part I have written the following code which works as if the loop didn't exist.
Do
Range("A1").Sel ect
Selection.End(x lDown).Select
Range(Selection , Selection.End(x lToRight)).Sele ct
Selection.Copy
Range("A1").End (xlDown).Offset (1, 0).Select
Selection.Paste Special Paste:=xlPasteA ll, Operation:=xlNo ne, SkipBlanks:= _
False, Transpose:=Fals e
Application.Cut CopyMode = False
Range("A1").Sel ect
Exit Do
Loop Until Range("L1").Val ue = Range("M1").Val ue
Thankful for any help
This procedure needs to be run when a cells value changes, again I mean result of the formula in that cell changes.
For the loop part I have written the following code which works as if the loop didn't exist.
Do
Range("A1").Sel ect
Selection.End(x lDown).Select
Range(Selection , Selection.End(x lToRight)).Sele ct
Selection.Copy
Range("A1").End (xlDown).Offset (1, 0).Select
Selection.Paste Special Paste:=xlPasteA ll, Operation:=xlNo ne, SkipBlanks:= _
False, Transpose:=Fals e
Application.Cut CopyMode = False
Range("A1").Sel ect
Exit Do
Loop Until Range("L1").Val ue = Range("M1").Val ue
Thankful for any help
Comment