+ Reply to Thread
Results 1 to 2 of 2

Macro for conditional formatting

  1. #1
    Registered User
    Join Date
    03-14-2019
    Location
    Barcelona
    MS-Off Ver
    2016
    Posts
    1

    Macro for conditional formatting

    Hello everyone,

    I'm a newbie in the whole Macro world, and I am struggling to find the information to solve my problem.

    I have created a Macro to compare data, so the Macro brings up some info from different files and pastes it in the corresponding table. The very last step would be for it to compare cell value from one month to the other and highlight if there is a mismatch between last month's data and this month's.

    With conditional formatting is fairly simple, my condition is "=B7 <> Q7", then highlight, for every cell to be compared. (not sure if you need this info but the idea is for the formatting to highlight if there are differences between numbers we entered in previous month's file for latest 12 months vs the info we have on current file)

    I'm sorry if any info is missing, I'm very new to all of this.
    I highly appreciate your time and help!

    Best,
    Flor.

  2. #2
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: Macro for conditional formatting

    Well the most important thing missing is which cell(s) to paint and an example file so we can help write a code exactly to fit your needs.
    if it is only limited to one cell then this should work.

    Please Login or Register  to view this content.
    where you can replace Range by any range of cells link f.e. Range("A3:A20")
    The first statement will change the background color to red and the else statement will remove that color again.

    This macro will need to be excecuted with button or shortcutkey.
    The code could also be places in a eventmacro like Worksheet_change so that it will update automaticly.

    when coding there are many ways to get to a simular result and how to resolve is largely based on how the actual file looks

+ 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 Macro
    By Allienne in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-17-2018, 05:12 PM
  2. Conditional Formatting in Macro
    By junmacs in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-18-2018, 05:17 AM
  3. Macro to set up conditional message based on results of conditional formatting
    By paysola in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-04-2016, 12:38 AM
  4. [SOLVED] Macro - Conditional Formatting
    By KateMaz in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-06-2013, 07:52 AM
  5. 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
  6. Macro for conditional formatting
    By jbyrne in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-09-2010, 09:07 AM
  7. can a macro do conditional formatting?
    By anon125-2 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-17-2009, 11:16 PM

Tags for this Thread

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