+ Reply to Thread
Results 1 to 2 of 2

Simple/Easy Conditional Formatting Question - except for me

  1. #1
    Registered User
    Join Date
    06-13-2012
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    1

    Exclamation Simple/Easy Conditional Formatting Question - except for me

    Greetings all from an Excel macro rookie!
    I have what I think is a simple challenge:

    I have an Excel macro that queries a database and returns about 20 columns/fields and an unknown number of records.

    My challenge - after the dataset is returned, I then want to query the cell contents for a "Y" and color code accordingly. If the value is "Y", I wish the interior color to be green. If NOT "Y" then the interior cell color is green. i wish to repeat until the end of the dataset (until an empty cell is reached).

    I am NOT a VB developer - so I'd ask that anyone who wishes to jump in be gentle with me. ;-)

    thanks for any help,

    b

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Simple/Easy Conditional Formatting Question - except for me

    You have one way of accomplishing this.

    Keep a template file which has the conditional formatting already setup. Then copy-paste special values your dataset into this template. All the required fields will change their colors as per the formatting.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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