+ Reply to Thread
Results 1 to 3 of 3

Add Dropdown to a specific Cell Color

  1. #1
    Registered User
    Join Date
    08-19-2013
    Location
    New York, NY
    MS-Off Ver
    Excel 2003
    Posts
    77

    Add Dropdown to a specific Cell Color

    I have the following code from a previous program I made and need help converting it.

    Please Login or Register  to view this content.
    I want it to do the same thing except it will only add a dropdown menu for a Cell that has a background of Yellow. Any suggestions?

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Add Dropdown to a specific Cell Color

    from what i can see you did this in macro record but you actually did quite a few steps which are overwritten?
    much of that code can be taken out actually

    how many rows are you realistically going to use....creating checks for 1048576 cells to insert data validations is not good practice
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Add Dropdown to a specific Cell Color

    Please Login or Register  to view this content.
    Change the For lrow statement to the amount of rows you want to run for
    i put 50 in this code
    colorindex = 6 - is yellow
    http://dmcritchie.mvps.org/excel/colors.htm
    this website has list of colorindex numbers

    This code does not clear the range of DV's prior to running thru
    so it will need to be added if you it to clear all DV's prior to running
    something like this prior to the FOR loop
    Please Login or Register  to view this content.
    Last edited by humdingaling; 05-28-2014 at 01:44 AM. Reason: added DV check

+ 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. Color a specific cell depending on a color of a cell in another workbook
    By Pilot604 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-22-2014, 05:43 PM
  2. Replies: 3
    Last Post: 01-08-2014, 03:56 PM
  3. Dropdown list & cell interior rgb color
    By mallick.rajat in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-23-2012, 12:29 PM
  4. Replies: 3
    Last Post: 07-08-2010, 06:48 PM
  5. Linking cell color to dropdown list values
    By gessie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-04-2008, 08:05 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