+ Reply to Thread
Results 1 to 3 of 3

colorindex make a color a number

  1. #1
    Registered User
    Join Date
    03-04-2007
    Posts
    2

    colorindex make a color a number

    I need to interrogate a number of cells, some of which are colored, I need to return the number 1 into those cells which are colored, and 0 into the blank cells.

    I want to do this as a macro, I have written the following code:

    Please Login or Register  to view this content.
    It just returns all cells with a 0. I know the color I want to change is 10.

    Anyhelp greatly appreciated.

    Ian

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    This will fix your problem

    Please Login or Register  to view this content.
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    Registered User
    Join Date
    03-04-2007
    Posts
    2
    Greatly appreciated - this was driving me nuts.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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