+ Reply to Thread
Results 1 to 2 of 2

Conditional Formatting using VBA

  1. #1
    Registered User
    Join Date
    02-22-2011
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    8

    Conditional Formatting using VBA

    Hi,

    I am trying to do conditional formatting within a macro because the range changes each month when I run it...

    However, it is throwing up a confusing issue...Here is the code

    Please Login or Register  to view this content.
    So, when I run the code and look at the conditional formatting on the sheet, instead of seeing =$S8=$Z$6, I see =$S9=$Z$6 and it highlights the row above the row I'm looking for?!

    Any idea why this is?

    I'm using Excel 2007. I got a colleague to run it and he is using Excel 2010 and it seems to work fine for him...it's quite annoying and has been perplexing me for a number of hours now!!!!

    Any help will be greatly appreciated.

    Cheers,

    E

  2. #2
    Registered User
    Join Date
    02-22-2011
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Conditional Formatting using VBA

    there is a slight mistake in the code,

    on the fifth line, there is:
    Please Login or Register  to view this content.
    It should be:
    Please Login or Register  to view this content.
    It's just getting the final row of column B

+ 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. Replies: 1
    Last Post: 03-05-2012, 06:20 PM
  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

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