+ Reply to Thread
Results 1 to 1 of 1

conditional formatting range changes after pastespecial code

  1. #1
    Forum Contributor
    Join Date
    03-10-2017
    Location
    USA
    MS-Off Ver
    office 2016
    Posts
    393

    conditional formatting range changes after pastespecial code

    In this sheet I'm copying rows from one sheet if they are marked by a toggle "X" into another sheet. I notice that the conditional formatting on the destination sheet gets changed when the paste code is run. I think its because of the "RemoveDuplicates" that runs after the past function. Here is the code and an example workbook. Is there a way to keep the destinations conditional formatting ranges? Or somehow reset it? I need to keep the "removeDuplicats" or somehow do that because there are 2 columns of data being transferred and some of the data is a duplicate.



    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In the attachment the conditional formatting ranges are all correct on the protocol sheet. If you click the protocol button on the coherence sheet it will move the marked rows to the protocol sheet and then you can see how the conditional formatting ranges get changed.
    Attached Files Attached Files
    Last edited by kevinu; 05-26-2017 at 10:57 AM.

+ 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. Macro Copy, PasteSpecial and conditional formatting CountIf
    By Nippinka in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-19-2016, 05:10 AM
  2. [SOLVED] VB code to apply Conditional formatting to a range of cells
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-10-2016, 11:49 AM
  3. [SOLVED] Conditional Formatting - How to colour code based on range
    By ijb89 in forum Excel General
    Replies: 1
    Last Post: 02-03-2016, 10:11 AM
  4. [SOLVED] Conditional Formatting is not transfering with Copy - Pastespecial Paste xlFormats
    By jrtraylor in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-28-2013, 07:34 PM
  5. VBA Code Conditional Formatting based on number range
    By LMS0214 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-05-2011, 03:08 PM
  6. Conditional Formatting out of order after PasteSpecial
    By yjbrody in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-02-2010, 01:29 PM
  7. Conditional Formatting Code - Deletes Wrong Conditional Format
    By RSpecianJr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-29-2010, 10:53 AM

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