+ Reply to Thread
Results 1 to 2 of 2

VBA to highlight every other group of rows

  1. #1
    Registered User
    Join Date
    08-09-2012
    Location
    NYC and CT
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    20

    VBA to highlight every other group of rows

    Hi All,

    I am looking for a VBA to highlight a every other set of rows in a data set in grouped by name. I am able to do so by using conditional formatting but being that I will be doing this on a frequent basis, i wanted to see if someone could assist me with creating a VBA code for it. I have attached an example of what I'd to do.

    If c2 = c1 then copy row color, if c2 does not equal c1 then highlight row light grey.

    Any feedback would be much appreciated!

    Thanks!

    Mark

    Excel Forum Example.xlsx

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: VBA to highlight every other group of rows

    Try something like:
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

+ 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. Replies: 1
    Last Post: 02-10-2014, 10:26 PM
  2. [SOLVED] Excel 2007 : Highlight every other group of rows
    By JimDandy in forum Excel General
    Replies: 9
    Last Post: 11-18-2013, 12:39 PM
  3. VBA Highlight Dupes in a Group
    By PJ Karaffa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-09-2013, 09:13 PM
  4. Highlight group of rows with same value
    By mateoc15 in forum Excel General
    Replies: 2
    Last Post: 03-05-2012, 12:33 PM
  5. How can I highlight every other group of data?
    By Brandie in forum Excel General
    Replies: 2
    Last Post: 05-27-2005, 02:05 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