Results 1 to 3 of 3

Help! Copy row from one workbook and paste into last row of another workbook not working

Threaded View

  1. #1
    Registered User
    Join Date
    06-26-2014
    Location
    Christchurch, New Zealand
    MS-Off Ver
    2010
    Posts
    43

    Talking Help! Copy row from one workbook and paste into last row of another workbook not working

    Hi, I've had the following working before but in another spreadsheet but for some reason it fails in my new spreadsheet. The only difference is that the destination workbook is now macro enabled so maybe has something to do with that?

    What I'm trying to achieve is to copy a fixed range of data from one workbook to the last empty row of another workbook. Here is what I've tried:

    Application.Goto (ActiveWorkbook.Sheets("Ref").Range("A11:BD11"))
        Selection.Copy
        ChDir "G:\Exec Reporting\Key Reports\BuildIT"
        Workbooks.Open FileName:= _
           "G:\Exec Reporting\Key Reports\BuildIT\BuildITQuoteFollowUp.xlsm"
        ActiveWorkbook.Sheets("Data").Select
        Range("A" & Rows.Count).End(xlUp).Offset(1).Select
            Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
            :=False, Transpose:=False
        Application.CutCopyMode = False
        ActiveWorkbook.Save
        ActiveWindow.Close
    Any help would be greatly appreciated.

    Thanks!
    Last edited by Jo2710; 09-17-2014 at 08:18 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Macro to find data in source workbook and copy paste to target workbook
    By D.Lovell in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 04-23-2014, 06:21 AM
  2. [SOLVED] Copy Specific Cells Across all worksheets in a Workbook and Paste Into single New Workbook
    By thunt13 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-14-2013, 10:43 AM
  3. Open workbook, filter values, copy/paste into Active workbook.
    By niceguy21 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-10-2013, 12:17 PM
  4. Replies: 2
    Last Post: 09-11-2012, 09:42 AM
  5. Simple task: Open a workbook, copy a range, paste into another workbook
    By fbonetti in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-21-2011, 01:12 PM

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