+ Reply to Thread
Results 1 to 3 of 3

Conditional formatting with VBA

  1. #1
    Registered User
    Join Date
    01-11-2005
    Posts
    3

    Conditional formatting with VBA

    Hi Forum,
    1st post so please be gentle :-)

    I have read hundreds of posts but can't quite find an answer to my problem.
    Seems pretty simple but now my ears are bleeding trying to work this one out.

    Using Excel 2003:
    Basically, I need to highlight any cell in a row that is equal to or less than a range set in column "J" of the same row.

    I have attached a sample spreadsheet showing what I am trying to do.
    Columns B:D show the effect I need using Conditional formatting
    Columns F:H is where I'd like to achieve the same effect with VBA
    Column J is the values I need to lookup in F:H and then format them via font or background, not fussed.

    I can't use Conditional formatting on the final sheet as it won't work with another macro that converts it to HTML, this other macro just won't pickup the formatting when it's conditionally changed so I need to do it with VBA!

    Any help as always would be gratefully accepted from you gurus :D
    Attached Files Attached Files
    Last edited by Tigger; 11-29-2010 at 12:45 PM. Reason: Solved

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: Conditional formatting with VBA

    Hi,

    Try replacing this

    Please Login or Register  to view this content.
    with this

    Please Login or Register  to view this content.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    01-11-2005
    Posts
    3

    Re: Conditional formatting with VBA

    Quote Originally Posted by sweep View Post
    Hi,

    Try replacing this

    Please Login or Register  to view this content.
    with this

    Please Login or Register  to view this content.
    Sweep, you are a Guru indeed, you made it look sooo simple

    Many thanks to you and the rest of the Forum for lots unsung help and hope you all have a very Happy Christmas.

    Cheers

    Tigger

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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