+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : Macro modification

  1. #1
    Forum Contributor
    Join Date
    04-20-2011
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2007
    Posts
    121

    Macro modification

    The attachment has a macro which archives data from sheet 1 to sheet 2. I need to password protect sheet 2 columns A,B,C so they cannot be modified (unless running the macro) excepting for column D which contains comments data that need to be added manually.

    Any help welcome
    Attached Files Attached Files

  2. #2
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161

    Re: Macro modification

    In order to protect the columns you wnt you will need to press Ctrl+A then righ click the highlighted area>Protection> uncheck the locked checkbox so nothing is in it and hit ok, now highlight your columns you want protected and do exactly the same except this time make sure it has a tick in it.

    Now protect it with a password, at the begining of your macro use Sheets("Sheet1").Unprotect Password:="whatever your password was" thats assuming its sheet1 your protecting then at the end of your code before End SUb add Sheets("Sheet1").Protect Password:="whatever your password was"

    Hope that helps!
    Not all forums are the same - seek and you shall find

+ 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