+ Reply to Thread
Results 1 to 2 of 2

Copy and Paste Inserting New columns with same colour format

  1. #1
    Registered User
    Join Date
    05-04-2018
    Location
    Sydney, Australia
    MS-Off Ver
    2016
    Posts
    65

    Copy and Paste Inserting New columns with same colour format

    Hi Team,

    I have been trying to find a solution to this but got stuck.

    Problem: I have some data in column E to J and it has a conditional formatting comparing values from columns N to S. Any change in cells E to J highlights that change with a colour.
    To track these changes over months and maintain history, I created a button which will copy and paste the values from E to J columns in columns U to Z. The command button works fine but I need to copy and paste maintain the highlighted cells to keep a track. For Example. In the attached file, I changed cells J8, F9 and J12 and you see them highlighted because of the conditional formatting. Now when I click Command Button, it copies over the values from E to J columns to columns U to Z but the highlighted cells does not copy. I am NOT able to find any solution to this. I will need to do this every month so its important that highlighted cells copies over with the same colour.

    Can you please assist me here. Attached is a sample workbook.

    Thanks in advance,
    Piyush
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    05-12-2021
    Location
    Europe
    MS-Off Ver
    365
    Posts
    45

    Re: Copy and Paste Inserting New columns with same colour format

    For this you need to use the PasteSpecial method.
    Example :
    Please Login or Register  to view this content.

+ 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: 12-20-2019, 01:49 AM
  2. [SOLVED] Copy and paste code isn't inserting appropriately
    By Butcher1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-20-2014, 02:54 PM
  3. Replies: 4
    Last Post: 03-02-2014, 11:55 AM
  4. Inserting rows and copy paste
    By abinayan in forum Excel General
    Replies: 4
    Last Post: 02-28-2011, 01:30 PM
  5. 2 Macro's: only vertical copy/paste action and copy-paste 14 columns to the right.
    By vdongen in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-08-2010, 10:34 AM
  6. [SOLVED] Colour active row but allow copy / paste
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-20-2006, 06:55 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