+ Reply to Thread
Results 1 to 3 of 3

locking cells with data

  1. #1
    Registered User
    Join Date
    01-12-2012
    Location
    Staffordshire
    MS-Off Ver
    Excel 2010
    Posts
    38

    Unhappy locking cells with data

    any help would be good.
    what I would like is when my workbook opens, I would like it to look through all sheets accept the MAIN Sheet, because that's needs locking altogether, and if there is data in lock that cell.
    this code does the work but its for all sheet how can I put into this code to not look at the MAIN sheet

    Thanks


    Please Login or Register  to view this content.
    Last edited by pejabe; 09-27-2016 at 04:57 AM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: locking cells with data

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    01-12-2012
    Location
    Staffordshire
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: locking cells with data

    Thanks AlphaFrog, works perfect

+ 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. Help with Auto Locking Cells once data entered
    By claritystevenage in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-11-2014, 12:06 AM
  2. Locking Cells After Data Entry Into A Template
    By KerryFreeman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-23-2013, 06:48 PM
  3. Locking specific cells eventually changing to locking all cells
    By davidingilbert in forum Excel General
    Replies: 1
    Last Post: 03-19-2013, 06:50 PM
  4. Macro for locking cells after data entered
    By rdmay10 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-15-2013, 04:03 AM
  5. Help with macro, automatical locking cells when excel is closed but only locking 1 sh
    By snoopy1461 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-21-2011, 11:29 AM
  6. Entering in data in specific cells using range protect or locking the cells
    By howard101 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-05-2008, 11:05 AM
  7. [SOLVED] locking formula in cells in without locking whole sheet
    By SuziQ in forum Excel General
    Replies: 1
    Last Post: 07-21-2006, 11:05 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