+ Reply to Thread
Results 1 to 2 of 2

How to copy a dynamic range with VBA and paste in another workbook?

  1. #1
    Registered User
    Join Date
    08-10-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    11

    How to copy a dynamic range with VBA and paste in another workbook?

    Friends, I am trying to copy a range of cells that encompass two columns and paste it into another workbook.
    The range will/could be added to at any given time so the code has to be able to go to the last cell with data. Here is the code I have so far but I cannot get it to work. Any ideas would be helpful!

    Please Login or Register  to view this content.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to copy a dynamic range with VBA and paste in another workbook?

    There are so many ways to do this, doing it correctly is based on the standard format of the data being examined. Can you provide some exact sample data (desensitized content, of course), so we can see what your data set really looks like?

    Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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