+ Reply to Thread
Results 1 to 9 of 9

Lock worksheet is specific cell has value over 1M

Hybrid View

  1. #1
    Registered User
    Join Date
    01-17-2014
    Location
    Brisbane, Australia
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Lock worksheet is specific cell has value over 1M

    Hi sorry I did mean 1,000,000 are you able to amend for me? Thanks so much for your help!

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Lock worksheet is specific cell has value over 1M

    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Is there an easy way to lock all formulas to the specific cell?
    By mcmuney in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-12-2013, 01:26 AM
  2. Replies: 0
    Last Post: 07-03-2012, 05:42 AM
  3. Lock Specific cells in a worksheet.
    By excelkeechak in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-02-2009, 11:46 AM
  4. Lock fill colour to specific cell
    By mattsson_karl in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 10-27-2008, 11:09 AM
  5. [SOLVED] Lock data in a cell a specific cell based on selection on other ce
    By CrimsonPlague29 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-10-2006, 06:10 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1