Consulting

Results 1 to 6 of 6

Thread: Solved: Conditional formatting

  1. #1
    VBAX Mentor Sir Babydum GBE's Avatar
    Joined
    Mar 2005
    Location
    Cardiff, UK
    Posts
    499
    Location

    Solved: Conditional formatting

    Not really a vba question...

    Is there a way of saying (as a conditional formatting formula) "If this row number is even, then apply this formatting.

    This is to accomplish getting alternate grey / white lines for ease of reading. I've done this before by using formulae in cells than getting the conditional formatting rules to refer to those formulae, but this time I can't create the extra columns to put those formulae in. So it all has to be done in conditional formatting.
    Have a profound problem? Need a ridiculous solution? Post a question in Babydum's forum

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by Babydum
    Not really a vba question...

    Is there a way of saying (as a conditional formatting formula) "If this row number is even, then apply this formatting.

    This is to accomplish getting alternate grey / white lines for ease of reading. I've done this before by using formulae in cells than getting the conditional formatting rules to refer to those formulae, but this time I can't create the extra columns to put those formulae in. So it all has to be done in conditional formatting.
    Of course.

    See http://www.xldynamic.com/source/xld.CF.html#rows
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Moderator VBAX Master geekgirlau's Avatar
    Joined
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,464
    Location
    If it's a once-off action, have you tried the autoformat? "List1" will give you alternating grey backgrounds on the rows.

  4. #4
    VBAX Mentor Sir Babydum GBE's Avatar
    Joined
    Mar 2005
    Location
    Cardiff, UK
    Posts
    499
    Location
    Gordon Bennett! That was quick! I hardly had time to use the men's room then!

    (Do you think I'm using to many exclamation marks?!)

    Thanks both.
    Have a profound problem? Need a ridiculous solution? Post a question in Babydum's forum

  5. #5
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by Babydum
    Gordon Bennett! That was quick! I hardly had time to use the men's room then!

    (Do you think I'm using to many exclamation marks?!)

    Thanks both.
    No, we all just understand your status in this group, and we treat your questions with the priority that they undoubtedly imply when you post.

    And, hey @$$****, we don't call it 'men's room' in our fair land(s), certainly not in Yorkshire (whew, can't keep up all that obsequiousness).
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  6. #6
    VBAX Mentor Sir Babydum GBE's Avatar
    Joined
    Mar 2005
    Location
    Cardiff, UK
    Posts
    499
    Location
    Quote Originally Posted by xld
    No, we all just understand your status in this group, and we treat your questions with the priority that they undoubtedly imply when you post.
    And rightly so.

    Quote Originally Posted by xld
    And, hey @$$****, we don't call it 'men's room' in our fair land(s), certainly not in Yorkshire (whew, can't keep up all that obsequiousness).
    Just thought out of consideration I'd use an expression that would be universally understandable.

    (1 Corinthians 24:19-23)
    Have a profound problem? Need a ridiculous solution? Post a question in Babydum's forum

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •