+ Reply to Thread
Results 1 to 2 of 2

VBA to continuously block shaded (Black) cells

  1. #1
    Registered User
    Join Date
    07-30-2015
    Location
    Rancho Cucamonga, CA
    MS-Off Ver
    ..
    Posts
    1

    VBA to continuously block shaded (Black) cells

    Hello all,

    Looking for some possible input on how to write a code that protects only black cells. I am new to VBA so my experience is very little, however I do have some experience with Matlab.

    Background on Spreadsheet:

    The spreadsheet I have made essentially follows a flow chart, when you open the spreadsheet only value in range not formatted black is A1, when you input A1, B1 becomes unformatted (conditional formatting) and so on flowing horizontally, however depending on input may skip portions. I do the sheet protected to leave titles and other info protected already.

    From my limited VBA it seems like there may be a way to:

    Protect Sheet(titles ect.) + Black Filled Cells
    Input in not formatted cell(which un formats new cell, already does this)
    Update Protection on Black filled cells
    Continuosly

    Any help is much appreciated for this newbie!

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: VBA to continuously block shaded (Black) cells

    I'd lock all the cells except for the one to begin with.

    Then I'd use a worksheet change event to watch for cells that have changed in a certain range, and adjust their .Locked property in a loop.
    Attached Files Attached Files
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

+ 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. Replies: 0
    Last Post: 01-21-2015, 12:05 PM
  2. Adding cells continuously down a row
    By seerex in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-07-2014, 06:15 AM
  3. sum only shaded cells within a range
    By mikewia in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-18-2013, 12:56 PM
  4. Counting Shaded Cells
    By H L Davis in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-06-2012, 05:09 PM
  5. [SOLVED] delete only black text from cells containing both blue & black text
    By london.cl.2012 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-21-2012, 10:15 PM
  6. Prevent Yellow color from printing. Make visible gridlines in a shaded block
    By johnnywinter in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-20-2007, 08:22 PM
  7. [SOLVED] How do I count shaded cells
    By Randy in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 02-03-2005, 08: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