+ Reply to Thread
Results 1 to 4 of 4

Copy & paste dynamic range

  1. #1
    Forum Contributor
    Join Date
    07-13-2017
    Location
    Hong Kong
    MS-Off Ver
    MS Office 365
    Posts
    481

    Copy & paste dynamic range

    Hi all,

    I am trying to copy and paste a dynamic range with VBA. Though, it returns a "run-time error 1004" since I changed the code from:

    Please Login or Register  to view this content.
    to:

    Please Login or Register  to view this content.
    Basically the error starting showing up since I added "cells" to my code, what am I doing wrong?

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Copy & paste dynamic range

    I would have used this for your original code (only first PasteTo cell need be specified)
    Please Login or Register  to view this content.
    And to answer your question, try...
    Please Login or Register  to view this content.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Forum Contributor
    Join Date
    07-13-2017
    Location
    Hong Kong
    MS-Off Ver
    MS Office 365
    Posts
    481

    Re: Copy & paste dynamic range

    Yup, that works!! Thanks

  4. #4
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Copy & paste dynamic range

    Glad it helped. Thanks for rep
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] Copy and paste of dynamic range
    By ciresuark in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-30-2018, 08:18 AM
  2. Copy and paste in dynamic range
    By mangeshp4 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-28-2016, 07:31 AM
  3. [SOLVED] Copy/Paste Dynamic Range
    By RedStick in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-28-2014, 03:38 PM
  4. [SOLVED] Copy and Paste Dynamic Range
    By VKS in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-27-2013, 11:14 AM
  5. Dynamic offset range copy/paste
    By elxan0611 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-08-2010, 04:45 AM
  6. Copy dynamic range from previous sheet and paste after last used row in a range
    By Mistweaver in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-04-2010, 06:24 PM
  7. Copy and paste dynamic range
    By wpryan in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-16-2010, 09:42 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