+ Reply to Thread
Results 1 to 4 of 4

Copy rows from one workbook to another

  1. #1
    Forum Contributor
    Join Date
    10-21-2012
    Location
    Ind
    MS-Off Ver
    Excel 2010
    Posts
    110

    Post Copy rows from one workbook to another

    Hi All,

    I do have 2 workbooks.

    1) Template.xlsx
    2) Worth.xlsx

    I need to open Worth.xlsx and activate sheet named as “ISSUES”.

    After activating “ISSUES” sheet I need to copy all rows from “Issues” and paste in Template.xlsx (Sheet name is “Worth ISSUES”). Data should pasted from row number 2 because 1 row has header.

    After pasting data “ISSUES” sheet must deleted from worth.xlsx and save

    I need to open both workbooks via application.getfileopen command. So that user can select both workbooks. (Folder path always change that’ why)

    Error Handling: - If “ISSUES” sheet does not exist then code should how msgbox and exit macro.

    Please help.

  2. #2
    Registered User
    Join Date
    02-09-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: Copy rows from one workbook to another

    I adapted this from something I already have.
    It might be a bit long winded but it should work.

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    10-21-2012
    Location
    Ind
    MS-Off Ver
    Excel 2010
    Posts
    110

    Re: Copy rows from one workbook to another

    Hi Ihmha,

    Thanks a lot for your reply. But its copying data in master workbook. I need to open Template.xlsx. Code should not copy data in macro book.

  4. #4
    Registered User
    Join Date
    02-09-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: Copy rows from one workbook to another

    Added some revise code and error handling.
    You would need to have the template.xlsx workbook in the same directory for it to run, or make this a personal macro which allows you to run it on any workbook.

    Please Login or Register  to view this content.

+ 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. Open workbook, copy rows, paste to end of current workbook
    By gmn734 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-25-2013, 05:16 AM
  2. Copy cell color of rows in 1 workbook to those rows in another workbook
    By pacciari in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-12-2012, 06:10 PM
  3. [SOLVED] VBA copy rows from a workbook and paste in the first available column of another workbook
    By rjnc in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 10-15-2012, 10:21 AM
  4. Copy rows from multiple sheets in one workbook into a different workbook
    By maneeshagr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-12-2012, 06:24 AM
  5. Copy values(rows & column) from one workbook from Another workbook
    By ananthakumar.e in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-05-2008, 09:33 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