+ Reply to Thread
Results 1 to 4 of 4

Copy Conditional Formatting Every Other Cell in a Range

  1. #1
    Registered User
    Join Date
    05-05-2023
    Location
    United Arab Emirates
    MS-Off Ver
    Microsoft 365
    Posts
    16

    Copy Conditional Formatting Every Other Cell in a Range

    Hi, I want to copy paste a cell conditional formatting to every other cell in a range of cells. I have attached before and after sample file and below is the vba code. Appreciate your support.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    01-07-2022
    Location
    Europe
    MS-Off Ver
    Office 365
    Posts
    473

    Re: Copy Conditional Formatting Every Other Cell in a Range

    Rather than applying CF to each cell individually, would you consider having two rules covering a bigger range? This is a much cleaner method than adding numerous rules with VBA.

    To replicate your intended results, highlight cells E4:AB4 and add this new rule for red (Formula to determine format):
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and this for green
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <<< If you have valued anyone's contributions in this thread, please click * to thank them for their efforts

  3. #3
    Registered User
    Join Date
    05-05-2023
    Location
    United Arab Emirates
    MS-Off Ver
    Microsoft 365
    Posts
    16

    Re: Copy Conditional Formatting Every Other Cell in a Range

    Worked for me! Thats a very neat solution. Did not thought its possible. Thanks for your support

  4. #4
    Valued Forum Contributor
    Join Date
    01-07-2022
    Location
    Europe
    MS-Off Ver
    Office 365
    Posts
    473

    Re: Copy Conditional Formatting Every Other Cell in a Range

    You're welcome, glad to hear that works for you.

+ 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] Apply Conditional Formatting to Custom Range if Cell Value Outside Range is ____
    By eNinjaInTraining in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-07-2019, 04:09 PM
  2. Help with Conditional formatting in a cell range.
    By abaumgartner in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-11-2013, 06:25 PM
  3. Replies: 3
    Last Post: 08-13-2013, 09:44 AM
  4. Copy Conditional Formatting to multiple range
    By ngkachun01 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-30-2013, 02:08 AM
  5. 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
  6. Conditional Formatting - Grey Out and Lock A range based on a cell value in that range
    By Excelgnome in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-14-2012, 07:31 PM
  7. conditional formatting on a cell range
    By mdchachi in forum Excel General
    Replies: 3
    Last Post: 05-03-2006, 12:48 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