+ Reply to Thread
Results 1 to 2 of 2

Copy Filtered column data and Paste Special Values to another sheet

  1. #1
    Registered User
    Join Date
    12-22-2015
    Location
    UK
    MS-Off Ver
    2010
    Posts
    19

    Copy Filtered column data and Paste Special Values to another sheet

    I have a VBA macro which filters a table, copies certain columns, and pastes the data into another sheet (one by one)
    I am pasting using:

    ActiveSheet.Paste

    The above works fine to paste the filtered data. But I only want to paste special values so that I do not lose the cell fomatting in the target table.
    I tried using

    ActiveSheet.PasteSpecial Paste = xlPasteValues

    But this returns an error.

    Any ideas?

    Thanks

  2. #2
    Registered User
    Join Date
    12-22-2015
    Location
    UK
    MS-Off Ver
    2010
    Posts
    19

    Re: Copy Filtered column data and Paste Special Values to another sheet

    I managed to get Paste Values to work by the following:
    Selection.PasteSpecial Paste:= xlPasteValues

    But I am still losing the cell formatting when the data gets pasted. e.g. accounting cells become numbers, Date cells become text...

    Any idea how to keep existing cell formatting when data gets pasted?

+ 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. column E copy/paste special values
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-14-2015, 06:03 PM
  2. Replies: 2
    Last Post: 03-18-2015, 05:31 AM
  3. 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
  4. Copy/Paste filtered data from one sheet to another with only matched column headings
    By archerrc in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-08-2013, 05:00 PM
  5. [SOLVED] Macro to find SKU in column; then copy data in row and paste special (values)
    By Starkey in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-13-2012, 06:05 AM
  6. Macro to copy and paste special values for column data and filter column data
    By ascottbag in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-10-2012, 02:15 PM
  7. Copy - Paste Special Filtered Data
    By longbow007 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 06-26-2010, 06:22 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