+ Reply to Thread
Results 1 to 7 of 7

Conditional Formatting via VBA

  1. #1
    Forum Contributor
    Join Date
    03-31-2012
    Location
    Sao Paulo
    MS-Off Ver
    Excel 2021
    Posts
    156

    Conditional Formatting via VBA

    Hello, I need a new help, tried this work with formatting condiconal more is difficult, I wonder if it is possible with VBA, is as follows: From B2 to AB2 have different values ​​larger and smaller than $ 500, like the cells greater than $ 500 would keep the blue background and less than $ 500 would keep the red background, because in the end I have to hide the values, the cells continued to fund its colors.

    grateful Leandro

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

    Re: Conditional Formatting via VBA

    How do you intend to hide the value?

    Please Login or Register  to view this content.
    Last edited by humdingaling; 07-21-2013 at 10:46 PM.
    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: Conditional Formatting via VBA

    Please Login or Register  to view this content.
    added extra check if text or 0 = white

  4. #4
    Forum Contributor
    Join Date
    03-31-2012
    Location
    Sao Paulo
    MS-Off Ver
    Excel 2021
    Posts
    156

    Re: Conditional Formatting via VBA

    Humdingaling, nearly perfect, is to adapt? the attached spreadsheet is an example, I need to compare the lines individually with the final values ​​that are in the "AO".

    thanks for the help.
    Leandro


    Pasta1.xlsm

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

    Re: Conditional Formatting via VBA

    sure not a problem
    next time.....best to advise the complete problem first time so everything gets done at once

    i see you made some changes to code which is good but I needs to go to 39 to cover until AM
    added loop to make it downwards after going across first
    based on 2 until last row (which runs off column A)

    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    03-31-2012
    Location
    Sao Paulo
    MS-Off Ver
    Excel 2021
    Posts
    156

    Re: Conditional Formatting via VBA

    Humdingaling, this is exactly what I'm needing, thanks for listening, I'll be more careful in the next for me to do the complete question, grateful, all good.

    leandro

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

    Re: Conditional Formatting via VBA

    sure not a problem
    its nothing major just means you get your answer faster

    Cheers

+ 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. Conditional Formatting via VBA: Change formatting in range based on value of each cell
    By ralphjmedia in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2013, 10:37 AM
  2. Delete Conditional Formatting conditions but keep cell formatting - Excel 2010
    By tetreama in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-09-2012, 08:28 PM
  3. Replies: 3
    Last Post: 05-15-2012, 04:13 PM
  4. Macro for formatting fonts and cell colours - not Conditional Formatting
    By Kayaness in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-07-2011, 03:46 AM
  5. Replies: 2
    Last Post: 11-02-2007, 12:03 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