+ Reply to Thread
Results 1 to 2 of 2

Protecting Cells using VBA

  1. #1
    Registered User
    Join Date
    02-28-2011
    Location
    Warrington, England
    MS-Off Ver
    Excel 2003
    Posts
    16

    Protecting Cells using VBA

    I have a workbook (attached) which has a 3 macros running in it.

    They are basic macros used to hide and unide rows (where no entry is required) This is managed by Data Validation where N/A is selected in the status column.

    However I have created a macro that inserts a new row (to copy formulas etc) and once the work book is protected this stops working or if a row is deleted it comes back shortly after.

    What I need it to do is to protect the calculated dates in column F (which drives the planner conditional formatting) but allows new rows to be added within the structure of the planner and not at the end

    I have just tried to upload the workbook but my work has blocked uploads.

    Please Login or Register  to view this content.
    This is the code i have used so far - when i have tried to run a sub to unprotect and re-protect the workbook this has failed to work as well.

    I appreciate this may be difficult without the workbook but i thought i would try.

    Can anyone please help me?

    Many Thanks in advance

    John

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Protecting Cells using VBA

    Ignore - did suggest using a table but that introduces even more issues when cells are protected
    Last edited by cytop; 05-03-2022 at 05:15 AM.

+ 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. Protecting cells upon data entry and not protecting the sheet.
    By Acousticlife81 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-06-2017, 10:37 AM
  2. Protecting a cell after data entry without protecting sheet
    By Acousticlife81 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-05-2017, 12:58 PM
  3. [SOLVED] Protecting certain cells using Vb.net
    By av123 in forum Excel General
    Replies: 3
    Last Post: 10-13-2016, 04:17 AM
  4. protecting all cells expect input cells
    By abirup in forum Excel General
    Replies: 0
    Last Post: 10-07-2016, 12:47 AM
  5. [SOLVED] Help with protecting only certain cells based on a cells contents
    By christopherjward in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-18-2013, 06:43 PM
  6. Protecting cells in a range, if cells contain information
    By vvebmike in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-03-2008, 06:41 PM
  7. Protecting certain cells
    By AFIOF719 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 10-18-2008, 12:56 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