+ Reply to Thread
Results 1 to 6 of 6

Protecting cells/data so they can't be changed after saving the file

  1. #1
    Registered User
    Join Date
    09-10-2013
    Location
    u.s.a
    MS-Off Ver
    excel 2010
    Posts
    33

    Protecting cells/data so they can't be changed after saving the file

    Hello,

    I have a worksheet where column M, N, P and Q are already password protected. Data is entered on this worksheet by Project Managers who tend to type over cells that already have text/numbers (relevant data) in them. What i would like to do is let the project managers type in Column A and Column B (specifically range A4:B1000) however, once they have saved the worksheet, i want everything that was typed in those columns/cells to be protected so they can't be deleted or written over.

    I have zero knowledge in programming/vba/macros so your help is much appreciated!!!!

  2. #2
    Registered User
    Join Date
    02-27-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    77

    Re: Protecting cells/data so they can't be changed after saving the file

    Try this,
    Please Login or Register  to view this content.
    If the PM wants to delete/overwrite, then they should unprotect(got to Review ->Unprotect Sheet) the sheet with password
    PS: To change the reference cell/columns that your needs and password as well.

  3. #3
    Registered User
    Join Date
    09-10-2013
    Location
    u.s.a
    MS-Off Ver
    excel 2010
    Posts
    33

    Re: Protecting cells/data so they can't be changed after saving the file

    thanks so much for your help and response. i have zero knowledge of macros. the code / programming language that you provided me above, where do i go to type it in? how do i run the code? Can you please show me step by step?

  4. #4
    Registered User
    Join Date
    02-27-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    77

    Re: Protecting cells/data so they can't be changed after saving the file

    Steps:
    1. Right click on sheet tab where you want to apply this macro
    2. Select 'View Code'
    3. Paste the above code in right side editor pane(Modify the range and password line 4 and 5,11 respectively)
    4. Press Alt+Q and Save the workbook once again
    5. Verify the result

  5. #5
    Registered User
    Join Date
    09-10-2013
    Location
    u.s.a
    MS-Off Ver
    excel 2010
    Posts
    33

    Re: Protecting cells/data so they can't be changed after saving the file

    OMG It works perfectly just as I had wanted! Thank you so much! I really appreciate it!

    if i wanted to know exactly what the code above means, should i create a new thread? If so, i will mark this thread as "SOLVED."

    Again thanks so much!

  6. #6
    Registered User
    Join Date
    09-10-2013
    Location
    u.s.a
    MS-Off Ver
    excel 2010
    Posts
    33

    Re: Protecting cells/data so they can't be changed after saving the file

    One more thing though....when i type over any cell between a1:b1000 after i wrote in it and saved the file.....a pop up comes up asking for a password. This is perfect since this is what i want it to do. However, when i type the actual password in the popup box it doesnt work. i have to go in and unprotect the sheet then type in the password from there in order for it to work. what is happening there? why doesn't the password work when the popup box asks for the password? thanks a lot!

+ 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. [SOLVED] Excel 2010 Identifying data changed in cells and Identifying the changed rows
    By SandyLake in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-13-2013, 01:12 AM
  2. Protecting an Excel file until the file name is changed
    By kimrickethan in forum Excel General
    Replies: 1
    Last Post: 05-22-2013, 07:39 PM
  3. Protecting Cells that can be changed selectively
    By alex.l_91 in forum Excel General
    Replies: 0
    Last Post: 01-29-2013, 11:14 PM
  4. Replies: 0
    Last Post: 06-04-2012, 07:21 AM
  5. Saving excel data that is changed weekly
    By Kaye in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-07-2005, 12:06 PM

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