+ Reply to Thread
Results 1 to 9 of 9

Possible to lock formatting only (still allowing data to be altered)?

  1. #1
    Registered User
    Join Date
    01-14-2009
    Location
    Earth
    MS-Off Ver
    2007
    Posts
    43

    Question Possible to lock formatting only (still allowing data to be altered)?

    Is it possible to lock a sheet so that data can still be altered but the formating cannot be changed?

    I have a simple sheet with some borders and alternating grey & white rows for easier reading when the sheet is printed. There will be another user editing this sheet and I want it to be easy for him so he doesn't have to worry about copying and pasting any formating.

    Basically, I want him to be able to edit the sheet without having to think about the formating. Is this possible?
    Last edited by flipjarg; 11-01-2011 at 01:59 PM.

  2. #2
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: Possible to lock formatting only (still allowing data to be altered)?

    When you protect the sheet, there is a long list of boxes you can check or uncheck to customize what is protected. Most people fail to notice this step because it is also asking what password to use to protect the sheet.

  3. #3
    Registered User
    Join Date
    01-14-2009
    Location
    Earth
    MS-Off Ver
    2007
    Posts
    43

    Re: Possible to lock formatting only (still allowing data to be altered)?

    Quote Originally Posted by Whizbang View Post
    When you protect the sheet, there is a long list of boxes you can check or uncheck to customize what is protected. Most people fail to notice this step because it is also asking what password to use to protect the sheet.
    Correct, but there is no check box to allow users to edit the actual data in the cells, only formating, rows, sorting, etc. I am wondering if there is a work around so that only the data can be altered while leaving the formating.
    Last edited by flipjarg; 11-01-2011 at 11:12 AM.

  4. #4
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: Possible to lock formatting only (still allowing data to be altered)?

    That is what I get for answering from memory rather than checking first.

    Is the "Allow Users To Edit Ranges" option available to you? Meaning, are you using Active Directory?

    Ooh, speaking of checking things first...

    Try setting the "Locked" property to False on the cells. Then protect the sheet. Formatting is still protected, but the data is not.

  5. #5
    Registered User
    Join Date
    01-14-2009
    Location
    Earth
    MS-Off Ver
    2007
    Posts
    43

    Re: Possible to lock formatting only (still allowing data to be altered)?

    Try setting the "Locked" property to False on the cells. Then protect the sheet. Formatting is still protected, but the data is not.
    You got my hopes up! I was hoping it would be that easy but when I copy and paste, the formating is still pasted.

    Is the "Allow Users To Edit Ranges" option available to you? Meaning, are you using Active Directory?
    I was looking at that option a little bit before protecting the sheet but didn't try anything with it yet. When I protect the sheet that option is grayed out.

  6. #6
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: Possible to lock formatting only (still allowing data to be altered)?

    You apply the "Allow Users to Edit Ranges" settings before you protect your sheet.

    Copying and pasting may always be an issue. Even if you prevent formatting changes, the user will not be able to simply paste. The workbook will tell them they cannot edit the cell. They would need to Paste Special as Text Only to avoid errors.

  7. #7
    Registered User
    Join Date
    01-14-2009
    Location
    Earth
    MS-Off Ver
    2007
    Posts
    43

    Re: Possible to lock formatting only (still allowing data to be altered)?

    Dang.... I will probably have to make a macro that automatically corrects the formating upon leaving a cell or saving unless someone responds with a better idea. (?)

  8. #8
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: Possible to lock formatting only (still allowing data to be altered)?

    Where are they copying from? Maybe there is an easier/better way to get the data into the worksheet.

  9. #9
    Registered User
    Join Date
    01-14-2009
    Location
    Earth
    MS-Off Ver
    2007
    Posts
    43

    Re: Possible to lock formatting only (still allowing data to be altered)?

    Thank you for the help, Whizbang

    Quote Originally Posted by Whizbang View Post
    Where are they copying from? Maybe there is an easier/better way to get the data into the worksheet.
    It could be from this sheet or another sheet. I found a solution! I had to resort to VB code (which I dread) but I was able to basically copy it and use my existing code!

    Created a module and pasted this code (http://www.exceltip.com/st/Row_and_c...Excel/488.html):
    Please Login or Register  to view this content.
    Then to use the code I used the following on the sheet (just had to add "ShadeAlternateRows Range("A1:F35"), 15, 2" to my existing code):
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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