+ Reply to Thread
Results 1 to 7 of 7

Need help don't know if i should use condiontional formatting or macros?

  1. #1
    Registered User
    Join Date
    05-15-2009
    Location
    Lancaster, CA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Need help don't know if i should use condiontional formatting or macros?

    I would like to have cells fill color depending upon the drop down menu selections.

    For example

    Cell A1 contains Credit Card Company ex: Visa
    Cell A2 contains Amount Paid ex: $45
    Cell A3 contains Drop Down Box with Posted and Scheduled

    When I selected posted, I want A1 and A2 to fill with the color red and when I selected posted I want them to fill green.

    Thank you for the help.
    I am very much a beginner when it comes to macros and VBA, but not with general excel experience. Thank you for your help.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Need help don't know if i should use condiontional formatting or macros?

    Hello darkjinni2,

    Welcome to the Forum!

    Based on what you have posted, I don't see any need to use VBA. Conditional formatting will work just fine.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    05-15-2009
    Location
    Lancaster, CA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Need help don't know if i should use condiontional formatting or macros?

    I need a little more elaboration, I couldn't get conditional formatting to work. Thank you for the help.

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Need help don't know if i should use condiontional formatting or macros?

    Hello darkjinni2,

    1. Select cell "A1"
    2. On the main menu select Format > Conditional Formatting...
    3. For Condition 1 select Formula Is in the drop down.
    4. Type in this formula:=IF(B1="Posted", TRUE, FALSE)
    5. Click on the Format... button.
    6. Select the Patterns tab of the Format Cells dialog
    7. Click on the color you want to use and then click OK. this dialog will close.
    8. Click on the Add>> button to bring up Condition 2
    9. Follow steps 3 through 7 to set up Condition 2. Change "Posted" to "Scheduled" in step 4.

  5. #5
    Registered User
    Join Date
    05-15-2009
    Location
    Lancaster, CA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Need help don't know if i should use condiontional formatting or macros?

    Thank you for all your help, one last question. Is there a way to do more than one at once, every time I try it back fills more than what I want.
    Attached Files Attached Files

  6. #6
    Forum Contributor mubashir aziz's Avatar
    Join Date
    03-18-2009
    Location
    Lahore, Pakistan
    MS-Off Ver
    MS Office 2013
    Posts
    533

    Re: Need help don't know if i should use condiontional formatting or macros?

    Just make these changes in condition 1 & 2

    '=IF($D4="first Pay Period",TRUE,FALSE)
    '=IF($D4="First Pay Period",TRUE,FALSE)

    Select cells B4:C26 and apply above conditional formatting .....
    Attached Files Attached Files
    If this post helps, Please don't 4get to click the star icon located at the bottom left of my Post.

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Need help don't know if i should use condiontional formatting or macros?

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

+ 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