+ Reply to Thread
Results 1 to 5 of 5

copy / append rows to a file from another file ( Name of Wsheet is same)

  1. #1
    Forum Contributor
    Join Date
    02-22-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    102

    copy / append rows to a file from another file ( Name of Wsheet is same)

    Hello,

    would require help on the key code for the following scenario ( a link which has similar code would also help)

    1. copy /append all rows to FileB from FileA
    2. Name of worksheets in the source and destination files Is same
    3. Hence the data should be copied to its corresponding / matching worksheet

    Ex: Both FileA & File B will have "Mywksht1", "Mywksht2", "Mywksht3". Data from Mywksht1 from FileA should be copied to Mywksht1 in FileB and so on..

    Thanks.

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: copy / append rows to a file from another file ( Name of Wsheet is same)

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: copy / append rows to a file from another file ( Name of Wsheet is same)

    Slight alteration to John's code incase you need to add the data to the next available row of each sheet in FileB.
    Please Login or Register  to view this content.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  4. #4
    Forum Contributor
    Join Date
    02-22-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    102

    Re: copy / append rows to a file from another file ( Name of Wsheet is same)

    Thanks a Ton ! this cannot be any simpler

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: copy / append rows to a file from another file ( Name of Wsheet is same)

    Please mark this thread as solved - Thread Tools -> Mark this thread as solved.

+ 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