+ Reply to Thread
Results 1 to 4 of 4

Copying and pasting values only

  1. #1
    Registered User
    Join Date
    06-11-2011
    Location
    south africa
    MS-Off Ver
    Excel 2007
    Posts
    26

    Copying and pasting values only

    Good day,
    I have a excel workbook that I am able to push a button to copy a worksheet and it creates a new worksheet and saves it and closes it.
    the problem I have is that I am try to have it only paste the values and not the formulas, so that if you opened it on another pc, you are able to read it
    as the values.
    Find attached the code I have been using - many thanks.

    Note that I have tried putting .PasteSpecial Paste:=xlPasteValues in different areas, but has not worked.

    Please Login or Register  to view this content.
    Last edited by Quintin; 08-13-2015 at 09:17 AM. Reason: added info

  2. #2
    Forum Contributor
    Join Date
    09-20-2014
    Location
    India
    MS-Off Ver
    2013
    Posts
    275

    Re: Copying and pasting values only

    Before you copy the range, better select it first. Then key-in below code
    Please Login or Register  to view this content.
    It basically removes all formulas in the range.

    Then you can copy only the values and paste it where ever you want..

  3. #3
    Registered User
    Join Date
    06-11-2011
    Location
    south africa
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Copying and pasting values only

    Many thx, I'll give that a try

  4. #4
    Forum Contributor
    Join Date
    09-20-2014
    Location
    India
    MS-Off Ver
    2013
    Posts
    275

    Re: Copying and pasting values only

    Always welcome...Please let me know the end result..

+ 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. [SOLVED] Copying values from a column and pasting into a row.
    By bean29 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-17-2012, 07:00 AM
  2. copying and pasting cell values
    By kurifodo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-22-2011, 01:55 PM
  3. Copying and Pasting Unique Values
    By himanshu83 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-29-2010, 04:01 PM
  4. copying & pasting multiple values from one sheet to another
    By phdog in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-04-2009, 03:05 AM
  5. Copying and Pasting values
    By Wyatt12 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-13-2009, 07:35 AM
  6. Copying formalua and Pasting as values
    By Russ1130 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-19-2007, 08:19 AM
  7. Replies: 3
    Last Post: 08-22-2007, 06:07 AM

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