I can only think of a worksheet change event.
right click on sheet tab>view code>insert this>save
will ONLY work for a change made in cell A2
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address <> "$A$2" Then Exit Sub
If Target.Offset(-1) > Target Then Target.Offset (-1)
End Sub
If Target.Offset(-1) > Target Then Target.Offset (-1)
correct to
If Target.Offset(-1) > Target Then target=Target.Offset (-1)
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.