+ Reply to Thread
Results 1 to 5 of 5

Paste special values and keep background colors

  1. #1
    Forum Contributor
    Join Date
    02-16-2006
    MS-Off Ver
    OFFICE 365
    Posts
    244

    Paste special values and keep background colors

    I am looking for the VBA code to copy and paste the values and the fill color of a range. I do not want the format (conditional) only the values and color. Any help would be appreciated.


    Thanks,

    Met

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Paste special values and keep background colors

    Please Login or Register  to view this content.
    Last edited by AB33; 11-07-2014 at 07:01 AM.

  3. #3
    Forum Contributor
    Join Date
    02-16-2006
    MS-Off Ver
    OFFICE 365
    Posts
    244

    Re: Paste special values and keep background colors

    AB33:

    In my haste, I did not state upfront that the fill colors were created by conditional formating. Therefore, when applying your code the paste seems to retain the color until I delete the conditions upon which the color seems to be deleted also. (See attached sample)


    As always, any help is appreciated.


    Thanks,
    Met
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Paste special values and keep background colors

    Initially the code copies all the formatting including the CF colours but later delete only the CF colours but retains other colour as you can see on the attached.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    02-16-2006
    MS-Off Ver
    OFFICE 365
    Posts
    244

    Re: Paste special values and keep background colors

    Ok Thanks.

    Met

+ 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. copy formula and paste for new data added and autofill.....and paste special values
    By prabhuduraraj09 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-13-2014, 07:40 AM
  2. Loop through Find then special paste background color with VBA
    By andsimon91 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-14-2014, 04:54 PM
  3. Replies: 1
    Last Post: 12-05-2012, 11:37 AM
  4. [SOLVED] Excel 2002 - Can only paste values, wont let me paste special
    By MK_Chopper_P in forum Excel General
    Replies: 2
    Last Post: 07-12-2012, 02:22 AM
  5. Background Colors Based on Values
    By zxiqlpixs in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-16-2007, 02:21 PM

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