+ Reply to Thread
Results 1 to 4 of 4

Copy sheet to other workbook

  1. #1
    Forum Contributor
    Join Date
    08-30-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    141

    Copy sheet to other workbook

    Hi guys

    The title sounds easy in fact, i actually can do it. But here is the real situation that i can't do it, I have two workbooks: A and B. I want to make a code that makes sheet3 in wbA stored in wbB. And, if i make changes to data in sheet3, i can stored the new sheet3's data in new sheet in wbB. For instance, the 1st sheet3 will be stored in wbB as the 1st sheet. Then the 2nd sheet3 (modified data) will be stored in wbB as the 2nd sheet. So, thats mean wbB automatically add a new sheet.

    Here is a code that i try to do, but since i'm noob in vba, i'm fail.

    Please Login or Register  to view this content.
    Is it clear? because i found it hard to explains. If anyone know how to do it, please help me.

    Thanks

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

    Re: Copy sheet to other workbook

    You say that you are updating sheet3 twice (as in the example), so how will the macro identify which is the updated data v/s the original data?

    Will the original data be cleared out and then the updated data filled in?
    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]

  3. #3
    Forum Contributor
    Join Date
    08-30-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    141

    Re: Copy sheet to other workbook

    Yes. something like that. Actually, the sheet3 contain invoice. So i want to save the invoice into wbB as sheet1 and then it will cleared out. And whenever the invoice updated again, i want to save it into wbB as sheet2, and if the invoice updated again, it will be saved as sheet3 in wbB.

  4. #4
    Forum Contributor
    Join Date
    08-30-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    141

    Re: Copy sheet to other workbook

    I found this code somewhere in internet and i change a bit and it really works.

    Please Login or Register  to view this content.
    But, the sheet will be saved in wkbDest as INVOICE, INVOICE (2), INVOICE (3) and so on. what i want is that the name of the sheet will be Sheet1, Sheet2, Sheet3 and so on. Does anyone know how to change the code because i have try to change it, but nothing happen.

+ 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