+ Reply to Thread
Results 1 to 3 of 3

SpecialCells Only Pastes Values???

  1. #1
    Forum Contributor
    Join Date
    03-26-2015
    Location
    Cookeville, TN
    MS-Off Ver
    Excel 365
    Posts
    202

    SpecialCells Only Pastes Values???

    I'm trying to use SpecialCells to copy and paste only visible rows (of a filtered list, in a single-sheet workbook named NewBook) onto a new sheet. Most of the columns contain values, but three columns contain formulas. I first copy the entire sheet (to create a new sheet with the same column widths as the source), then clear everything below the header row and paste in the SpecialCells data. My code is:
    Please Login or Register  to view this content.
    I notice that the pasted data is ALL values, even though the source sheet contains formulas. What gives? Does SpecialCells (for visible cells) only capture values and not formulas?

  2. #2
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,150

    Re: SpecialCells Only Pastes Values???

    : ) ... Use Copy => PasteSpecial xlPasteAll ... e.g.:
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831
    (removed as misreading)
    Last edited by Marc L; 12-19-2019 at 06:13 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. VBA Code copies and pastes the formulas? I only need the values.
    By tysonbly in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-14-2015, 11:20 AM
  2. Replies: 1
    Last Post: 10-03-2012, 07:06 PM
  3. Replies: 2
    Last Post: 09-05-2012, 03:20 PM
  4. [SOLVED] Automating a macro that copies and pastes data and pastes 2 rows under the previous one.
    By thebank in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-30-2012, 05:02 PM
  5. I have a script in where it copies a sheet's data, and pastes it, but over pastes...
    By Cyberpawz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-24-2012, 02:20 AM
  6. Replies: 2
    Last Post: 03-27-2012, 06:37 PM
  7. SpecialCells for only numeric values?
    By JFamilo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-18-2005, 02:51 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