+ Reply to Thread
Results 1 to 4 of 4

Error with Copying Data from Workbook to another Workbook - Range Error

  1. #1
    Registered User
    Join Date
    06-21-2019
    Location
    Topeka
    MS-Off Ver
    2016/Office 365
    Posts
    17

    Unhappy Error with Copying Data from Workbook to another Workbook - Range Error

    I am trying to copy the data from:
    Workbook Get Outlook Metadata - Master
    Worksheet Clean Results
    To

    Workbook AddRemovePurge
    Worksheet AddEmailDump

    The AddEmailDump is a running log, so the data being copied needs to be added to the last row, they column names are all the same, but I keep getting the Out of Range error and I can't seem to figure it out. The macro is assign the the "dump truck" on the Clean Results sheet. Any help would be greatly appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Error with Copying Data from Workbook to another Workbook - Range Error

    The clean results sheet does not have have a dump truck macro to review. Is that where you want us to create the macro for you or do have a macro that is not included.

  3. #3
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Error with Copying Data from Workbook to another Workbook - Range Error

    Hi jwood1650,

    Change this line of code in the Copy_Paste_Below_Last_Cell macro (commented as 3. Copy & Paste Data) from this...

    Please Login or Register  to view this content.
    ...to this (note I've bolded my changes):

    Please Login or Register  to view this content.
    Regards,

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Error with Copying Data from Workbook to another Workbook - Range Error

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ 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] Error 13 Type Mismatch when copying data from one workbook to another
    By MattEvansC3 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-16-2020, 10:56 AM
  2. Trouble copying filtered data to new Workbook- Run-time Error 13
    By izzorac in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-25-2014, 10:45 AM
  3. Creating a new workbook, copying sheets & saving workbook - Subscript error
    By amphinomos in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-30-2014, 09:04 AM
  4. Getting 1004 error while copying data from sheets to master tab in the workbook
    By swapnilj1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-12-2014, 10:40 AM
  5. [SOLVED] Closing a Workbook from another workbook: Workbooks.close error: Subscript out of range
    By Coreyusa in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-14-2013, 06:45 PM
  6. Copying data range from a variablew workbook to static workbook
    By singhpab in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-11-2013, 09:43 PM
  7. Copying from Workbook B into Workbook A Run time error
    By quetzalc0atl in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-14-2013, 02:57 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