+ Reply to Thread
Results 1 to 5 of 5

How do I paste special values with Destination:=Worksheets

  1. #1
    Forum Contributor
    Join Date
    08-03-2009
    Location
    Cary, NC
    MS-Off Ver
    Excel 2016
    Posts
    109

    How do I paste special values with Destination:=Worksheets

    I'm running the following code:

    Please Login or Register  to view this content.
    Which works fine. But I want to paste special values except when I try this:

    Please Login or Register  to view this content.
    I'm getting a syntax error. How do I make this work?

  2. #2
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: How do I paste special values with Destination:=Worksheets

    Maybe this-
    Please Login or Register  to view this content.
    Why are you using the traditional Copy Paste when you want to paste values only?

    Try this instead -

    Please Login or Register  to view this content.
    This is much faster.
    Last edited by sourabhg98; 02-15-2016 at 01:11 PM.
    Happy to Help

    How to upload excel workbooks at this forum - http://www.excelforum.com/the-water-...his-forum.html

    "I don't get things easily, so please be precise and elaborate"

    If someone's post has helped you, thank by clicking on "Add Reputation" below the post.
    If your query is resolved please mark the thread as "Solved" from the "Thread Tools" above.

    Sourabh

  3. #3
    Forum Contributor
    Join Date
    12-02-2010
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2013, 2016
    Posts
    100

    Re: How do I paste special values with Destination:=Worksheets

    bishoposiris,

    The issues is the multiple argument nature of .PasteSpecial. I don't believe you can use it along with the destination function. It should work to simply put the paste function at the end of a normal cell reference. Basically shuffling the code around and dropping the "Destination:=" part of it.

    Please Login or Register  to view this content.
    You may already have this, but you would probably want a line in your code that ends the "Cut Copy" mode:

    Please Login or Register  to view this content.
    I hope this helps,

    DarkF1ame

  4. #4
    Forum Contributor
    Join Date
    08-03-2009
    Location
    Cary, NC
    MS-Off Ver
    Excel 2016
    Posts
    109

    Re: How do I paste special values with Destination:=Worksheets

    sourabhg98, your first suggest give me error: Run-time error '438': Object doesn't support this property or method. Your second suggestion cuts the number from .Range("D" & RowCount).Value but does nothing with it. It continues through the For loop and the cell still has the "cut lines" around it. But nothing got pasted.

  5. #5
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: How do I paste special values with Destination:=Worksheets

    Sorry the second one should be this-
    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. Copy from static destination & paste to dynamic destination
    By Marbleking in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-31-2015, 09:31 AM
  2. 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
  3. [SOLVED] Destination paste values
    By Risto85 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-18-2013, 06:52 AM
  4. Paste Values Without Selecting the destination range
    By joatm0n in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-24-2012, 05:59 PM
  5. [SOLVED] Excel VBA Paste Special - replace contents of destination cells
    By Sam via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-16-2012, 12:44 PM
  6. Paste Special, replace contents of destination
    By Cookstein2 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-08-2009, 04:35 AM
  7. [SOLVED] copy paste values only using destination:=
    By Spike in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-12-2006, 07:30 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