Hello everyone,
I am trying to build a macro that will stop me to add values to a specific row in a column is a condition is met.
What I have is a Holiday plan with a %10 quota per day separated by column and rows. Basically when D4 reached 10% I want the code to tell me to stop adding in that column because the quota was met but it should allow me to add in other columns where the the quota is still not met.See picture below.
Any help would be much appreciated.
Thanks.
I am trying to build a macro that will stop me to add values to a specific row in a column is a condition is met.
What I have is a Holiday plan with a %10 quota per day separated by column and rows. Basically when D4 reached 10% I want the code to tell me to stop adding in that column because the quota was met but it should allow me to add in other columns where the the quota is still not met.See picture below.
I managed to make a code but when the quota is met it doesn't allow me anymore to click anything.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Range("A1:C24").Find(what:="Limit Reached", LookIn:=xlValues, lookat:=xlWhole, MatchCase:=True) Is Nothing Then
MsgBox "Stop adding"
End If
End Sub
Any help would be much appreciated.
Thanks.