+ Reply to Thread
Results 1 to 2 of 2

Copying values from multiple Tabs of a WB into corresponding Tabs of another WB using VBA

  1. #1
    Registered User
    Join Date
    11-14-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007
    Posts
    9

    Copying values from multiple Tabs of a WB into corresponding Tabs of another WB using VBA

    Hi All,

    I need your help in copy pasting values from one WorkBook to others. I've searched many similar posts but not able to find the help I want.

    I've a workbook wth 6 Tabs and would like to copy the Values from each of the Tabs into a Report Template that has the same Tabs already existing. That means, simply copying the data from all 6 Tabs of a Workbook and pasting them into the corresponding Tabs (with Same name as in the Report Workbook) of a workbook named " Template" and then saving the same with a date and time stamp and ofcourse in ".xlx" format.

    You can see the code I was trying with:

    Please Login or Register  to view this content.
    In the above code, as soon as the copy paste is done for the 1st Tab it fails to repeat teh same activity for the second tab which is "Schedule Change", (see the highlighted code).
    Can anyone please help me on this. This is very crucial for me and I would like to stop this Copy-Pasting activity alltogether.

    Please help.

    The 6 Tabs which are there in both the Source and Destination work books are in the same order and tehy are : Qualified OverDue Roles, Schedule Change, BP ES Qualified, SI Qualified, Data Query, Not Qualified & Provisional.

    Please let me know if you need any more details.

  2. #2
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Copying values from multiple Tabs of a WB into corresponding Tabs of another WB using

    Hi,

    Having two workbooks open at the same time and then referring to the active sheet or active workbook is prone to errors. I have changed the code to refer specially to the source and target workbooks. You need to make some changes yourself as indicated by my comments. Give it a try:

    Please Login or Register  to view this content.
    If you like my contribution click the star icon!

+ 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