+ Reply to Thread
Results 1 to 7 of 7

Conditional Formatting using VBA

  1. #1
    Registered User
    Join Date
    04-18-2014
    Location
    USA
    MS-Off Ver
    MS Office 2010
    Posts
    86

    Conditional Formatting using VBA

    Hello I'm trying to find a way to Highlight cells and/or rows if a cell contains a specific text but also only highlight the rows if another cell on that same row is less than or equal to a certain number. And maybe highlight a different color depending on said number all while using VBA. I tried everything I could think off using conditional formatting and no luck with that.

    anyways in the attached file If Column C contains the word outsider I want that row highlighted one color; If in that same row that contains "outsider" in Column C, Column
    E contains the number 6 or lower I want that row a completely different color; and again if Column E is between 7-12 I want a completely different color; And again if Column E is between 13-18 again different color.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,151

    Re: Conditional Formatting using VBA

    Try:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-18-2014
    Location
    USA
    MS-Off Ver
    MS Office 2010
    Posts
    86

    Re: Conditional Formatting using VBA

    ok Thanks that worked. Now just in case it I want to add word that that list (ie outsider and something else (lets say ooze)) with the same criteria how would I do that.

  4. #4
    Registered User
    Join Date
    04-18-2014
    Location
    USA
    MS-Off Ver
    MS Office 2010
    Posts
    86

    Re: Conditional Formatting using VBA

    I'm also gonna have another project going on where I need to add numbers to cells that contain certain words and subtract numbers from everywhere else. The numbers will be connected to a Named range/data/formula. so I'll post about that later when I need to.

  5. #5
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,151

    Re: Conditional Formatting using VBA

    Why are you increasing your demand as you receive a response ?
    Why don't you write what you want right away ?

  6. #6
    Registered User
    Join Date
    04-18-2014
    Location
    USA
    MS-Off Ver
    MS Office 2010
    Posts
    86

    Re: Conditional Formatting using VBA

    sorry but yeah the second project is actually from This Post that I posted a while ago and got an answer for using conditional formatting that worked but not all that well for me.
    Last edited by TwistedFaith; 03-22-2020 at 06:05 PM.

  7. #7
    Registered User
    Join Date
    04-18-2014
    Location
    USA
    MS-Off Ver
    MS Office 2010
    Posts
    86

    Re: Conditional Formatting using VBA

    Sorry It took me a while to figure out what was wrong with the link I was trying to link to in the above post. It's now fixed and linked to the proper post.

    Please help me with this. Either here or on the linked thread above Preferably on the linked post as that has the workbook I need the VBA Code on. I know it was technically solved with formula/s but if I change anything it messes up but with VBA it would be fixed the way I need it.

    Thanks in advance for any and all help given (if any help is given).

+ 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] Conditional Formatting based on another cells Conditional Formatting
    By chriskay in forum Excel General
    Replies: 4
    Last Post: 08-22-2019, 05:33 AM
  2. [SOLVED] Override conditional formatting (in general, without changing the conditional formatting)
    By Stormin' in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-21-2017, 07:15 AM
  3. Conditional Formatting Removing Previous Conditional Formatting?
    By CravingGod in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2016, 01:02 PM
  4. Replies: 6
    Last Post: 01-08-2016, 06:44 PM
  5. Opening xlsm files with conditional formatting opens with removed conditional formatting
    By Martijn.Steenbakker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-07-2014, 05:38 AM
  6. Replies: 1
    Last Post: 09-20-2013, 06:23 PM
  7. Replies: 3
    Last Post: 05-15-2012, 04:13 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