+ Reply to Thread
Results 1 to 4 of 4

Scroll through sheets (except 1st) and ClearContents based on Cell Color

  1. #1
    Registered User
    Join Date
    11-23-2013
    Location
    new york, ny
    MS-Off Ver
    Excel 2010
    Posts
    42

    Scroll through sheets (except 1st) and ClearContents based on Cell Color

    Hi!


    I have a workbook with 16 sheets. The only inputs in the workbook are made in cells colored ColorIndex = 20. I'd like to have a macro that can Clear.Contents of every cell colored "20" throughout the entire workbook excluding the first sheet ("MASTER"). The colored selects are sprinkled inside ("A1:J53") but I'd rather not select them if it's not necessary.

    Here's what I have so far...

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Scroll through sheets (except 1st) and ClearContents based on Cell Color

    Hello,

    Here's a slightly modified version of your code to try :
    Please Login or Register  to view this content.
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  3. #3
    Registered User
    Join Date
    11-23-2013
    Location
    new york, ny
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: Scroll through sheets (except 1st) and ClearContents based on Cell Color

    Amazing!! Thanks GC Excel.

  4. #4
    Registered User
    Join Date
    11-23-2013
    Location
    new york, ny
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: Scroll through sheets (except 1st) and ClearContents based on Cell Color

    All of my sheets are protected... I have the following subs to unprotect and protect. How can I implement those two into the loop you made me so that I unprotect --- run loop --- protect?

    Please Login or Register  to view this content.

    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)

Similar Threads

  1. Macro to change cell text color based on darkness of cell fill color
    By cincyshirm61 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-25-2014, 12:11 PM
  2. [SOLVED] Color-format a cell which contains data in a column based on the color of another cell
    By Nit3hawK in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-27-2013, 05:25 PM
  3. Replies: 2
    Last Post: 01-27-2012, 09:40 PM
  4. ClearContents of a range of cells in on sheets bar 5
    By Juenapa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-08-2011, 05:18 AM
  5. How to Unprotect/Copy/Paste/ClearContents without Activating the Sheets?
    By m3atball in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-26-2010, 12:21 AM

Tags for this Thread

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