+ Reply to Thread
Results 1 to 5 of 5

Better vba to select all cells in a range if cell interior colour is not green

  1. #1
    Forum Contributor
    Join Date
    06-19-2014
    Location
    Toronto, Canada
    MS-Off Ver
    Office365
    Posts
    273

    Better vba to select all cells in a range if cell interior colour is not green

    I know how to loop through each cell to get this done (basically convert all cells to value except for cells in green), I wonder if there is a quicker way by selecting all non green cells in used range, set these as a range/array and convert to value all at once. This is more of a speed issue.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: Better vba to select all cells in a range if cell interior colour is not green

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Better vba to select all cells in a range if cell interior colour is not green

    Hi
    I'm not sure you'll save much time, as you'll have to loop through cells anyway to find those that aren't green.

    this will loop through cells in the used range and convert non-green cells to values, but it sounds like you have that covered anyway

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    06-19-2014
    Location
    Toronto, Canada
    MS-Off Ver
    Office365
    Posts
    273

    Re: Better vba to select all cells in a range if cell interior colour is not green

    Thanks NickyC for replying, I do have something similar but thanks anyways!

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,104

    Re: Better vba to select all cells in a range if cell interior colour is not green

    Not sure how much difference this will make, but you can limit the loop to cells that contain formulae
    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. [SOLVED] If cell in range has specific interior Colour then copy to next available row in new sheet
    By ARowbot in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-22-2015, 04:17 PM
  2. Replies: 1
    Last Post: 02-17-2015, 11:11 AM
  3. Replies: 6
    Last Post: 08-23-2012, 12:14 PM
  4. Replies: 8
    Last Post: 06-17-2012, 11:19 AM
  5. Replies: 1
    Last Post: 05-16-2006, 05:20 AM
  6. Select a range but only sum the cells in a certain colour?
    By jlm2184 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-24-2006, 07:55 AM
  7. [SOLVED] Selecting all cells of a certain fill (interior) colour (macro?)
    By Neil Goldwasser in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-01-2006, 10:25 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