Hi sorry I did mean 1,000,000 are you able to amend for me? Thanks so much for your help!
Hi sorry I did mean 1,000,000 are you able to amend for me? Thanks so much for your help!
Replace the previous code with the below one
![]()
Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address <> "$D$29" Then Exit Sub If IsNumeric(Target.Value) And Target.Value >= 1000000 Then Me.Protect "abc" MsgBox "Sheet Protected", vbInformation, "Reached the Maximum Value" End If End Sub
If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
Mark your thread as Solved
If the suggestion helps you, then Click *below to Add Reputation
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks