+ Reply to Thread
Results 1 to 3 of 3

VBA conditional formatting

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    10-17-2007
    Location
    Tasmania, Australia
    MS-Off Ver
    2019, 365(v2403)
    Posts
    370

    VBA conditional formatting

    Hi Guys,

    I have a spreadsheet and have added a couple of bits to help my fill it out, in the full version it is 6000+ rows So I cut a bunch out.

    I added a foumula to column "U", which I left there from U11 onwards and a conditional formatting in column X/Y, which I have left for you to see

    Column U, if column X is blank record 0(zero), if it is 'absent' record 1(one)
    Column X and Y if blank make it red

    But the powers that be are computer muppets and cant under stand that they can just paste the values when they copy and past prior to upload into the National system.

    Is there a simple VBA that will achieve the same result?

    Attached is a small sample.
    Attached Files Attached Files
    Last edited by russkris; 11-19-2017 at 10:29 PM. Reason: Added right file

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523

    Re: VBA conditional formatting

    You can use conditional formatting for column U, if it equals 0 then color red.
    Your formula should not have the quotes for the numbers though just =IF(X11 = "Absent", 1,0)

  3. #3
    Valued Forum Contributor
    Join Date
    10-17-2007
    Location
    Tasmania, Australia
    MS-Off Ver
    2019, 365(v2403)
    Posts
    370

    Re: VBA conditional formatting

    Good idea. Thanks for the formula tip too. The main problem is the formula for some reason. They don't like it being there

+ 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] 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
  2. Replies: 1
    Last Post: 12-08-2016, 03:14 PM
  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