+ Reply to Thread
Results 1 to 4 of 4

Copy / Paste Values to different worksheet using Copy Destination

  1. #1
    Forum Contributor
    Join Date
    05-26-2004
    Location
    Halifax, UK
    MS-Off Ver
    Office 2016
    Posts
    260

    Copy / Paste Values to different worksheet using Copy Destination

    This is the code I'm trying to use:

    Please Login or Register  to view this content.
    It works without the PasteSpecial on the end but it copies the formulas from CC23:EB23 on worksheet wsDevTab to B5:BA5 on worksheet wsMonthlyResults. I just want it to copy values from one worksheet to the other.

    With the PasteSpecial argument I get the error "Unable to get the PasteSpecial property of the Range class".

    Anyone got any ideas? It's probably just a case of a full-stop in the wrong place or something...
    Last edited by AliGW; 01-04-2021 at 10:27 AM. Reason: SOLVED tag added - no need to edit the thread title!!!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,409

    Re: Copy / Paste Values to different worksheet using Copy Destination

    Administrative Note:

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: Copy / Paste Values to different worksheet using Copy Destination

    You can't do a one line copy/paste values. You'd need either:

    Please Login or Register  to view this content.
    or simply assign the values:

    Please Login or Register  to view this content.
    Rory

  4. #4
    Forum Contributor
    Join Date
    05-26-2004
    Location
    Halifax, UK
    MS-Off Ver
    Office 2016
    Posts
    260

    Re: Copy / Paste Values to different worksheet using Copy Destination

    Great thanks Rorya. I used the second example as it seems the more efficient of the two. :-)

+ 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. [SOLVED] Copy & Paste - destination is combo box
    By kl_clifford in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-28-2015, 09:13 AM
  3. Copy and Destination paste value question
    By alexduy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-18-2014, 09:06 PM
  4. Copy and Paste w/ Paste Destination determined by Cell Value
    By jeremy9er7 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-10-2014, 10:42 AM
  5. [SOLVED] Destination copy and paste (values only) for copy loop
    By mr_mango81 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-01-2013, 08:59 PM
  6. [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