+ Reply to Thread
Results 1 to 5 of 5

Copy from one sheet into another sheet (different workbook) at the bottom

  1. #1
    Registered User
    Join Date
    02-17-2010
    Location
    Brisbane Australia
    MS-Off Ver
    Excel 2016
    Posts
    45

    Copy from one sheet into another sheet (different workbook) at the bottom

    OK, Excel gurus...I am about to explode and for the life of me I am puzzled. The below script works on a different workbook but not on this.

    PLease help. Basically I am trying to copy the data from one sheet (Sheet1) to Sheet 4 into a different workbook. I can't see why I get an error.

    Please Login or Register  to view this content.
    It looks like it gives me an error at the ActiveSheet.UsedRange.Offset(1, 0).Copy bit! Application Defined or Object Defined” error '1004

    Thanks a lot in advance

  2. #2
    Valued Forum Contributor
    Join Date
    12-22-2015
    Location
    HK
    MS-Off Ver
    2010
    Posts
    532

    Re: Copy from one sheet into another sheet (different workbook) at the bottom

    seee if help.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-17-2010
    Location
    Brisbane Australia
    MS-Off Ver
    Excel 2016
    Posts
    45

    Re: Copy from one sheet into another sheet (different workbook) at the bottom

    Thanks a lot Ikboy. I still get an error after the '**** Activate copy paste though.

    "Application-defined or object-defined error

  4. #4
    Valued Forum Contributor
    Join Date
    12-22-2015
    Location
    HK
    MS-Off Ver
    2010
    Posts
    532

    Re: Copy from one sheet into another sheet (different workbook) at the bottom

    firstly you have to park my code into yours code and make sure all workbook's name and sheets name is right then.

  5. #5
    Forum Contributor
    Join Date
    12-05-2015
    Location
    Akron, OH
    MS-Off Ver
    15.0
    Posts
    424

    Re: Copy from one sheet into another sheet (different workbook) at the bottom

    Ikboy/Hawk,

    I'm curious why you chose the ws1.UsedRange.Offset.Copy method instead of ws1.copy. I'm new to VBA.

    Also, why the Offset? If you're getting an error at that line, I would try: ws1.UsedRange.Copy and leave the Offset out of it, unless there is something I'm missing. If not, I'm curious about why the Offset is used.

    Thanks,

    Joe
    Last edited by joe31623; 01-14-2016 at 04:05 AM.

+ 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 5 Top and Bottom values Another Sheet
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-18-2015, 09:51 PM
  2. Copy and paste data to bottom empty row on new sheet
    By Alex0929 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-16-2014, 04:29 PM
  3. [SOLVED] macro to copy rows from a sheet in one workbook to a sheet in a different workbook...
    By fredderf81 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-16-2013, 01:36 PM
  4. copy variable range from one sheet to top of another, rather than bottom.
    By y0rk1e72 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-18-2012, 12:43 PM
  5. Copy row and paste at bottom of sheet if criteria is met?
    By juniperjacobs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-27-2010, 06:08 PM
  6. Copy and insert new row 5 rows up from bottom of sheet
    By xned in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-14-2009, 03:13 AM
  7. How to Copy macro to bottom of same sheet
    By ravenbird in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-14-2008, 11:04 AM

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