Hi I have used VBA and visual basic before
I want a macro that changes the value of a cell when another cell is updated.
I.E. Cell C2 = (A2 + B2)
If the value in cell C2 is greater than 10 Then text in Cell D2 could say Over limit.
I have this code in a module
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$C$2" Then
If (C2.Value > 10) Then
D2.Value = "Over limit"
Else
D2.Value = "Okay"
End If
End If
End Sub
Am I on the right track here.
Bookmarks