+ Reply to Thread
Results 1 to 9 of 9

Create new sheet and copy data automatically using VB

  1. #1
    Registered User
    Join Date
    03-07-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    17

    Create new sheet and copy data automatically using VB

    Hi Folks,

    I am looking to have a single input sheet where my order guys can update and this inturn creates a new tab with all the data transferred across.

    I then want to extract this data and tabs to another sheet and this I also need help with.

    I can use the following script to create the new tab with the name transferred from the cell, but just cant get find how to do the data copy from that specific row.

    Please Login or Register  to view this content.
    All help is very much appreciated.
    Attached Files Attached Files

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

    Re: Create new sheet and copy data automatically using VB

    Your file is protected, am not able to open it.
    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
    Registered User
    Join Date
    03-07-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Create new sheet and copy data automatically using VB

    sorry password is avaya01 forgot to save without this!

  4. #4
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Create new sheet and copy data automatically using VB

    Hi

    You want to create new sheets based on the order number... ie. in this case you want 36 sheets to be created with the respective data... right?
    Click *, if my suggestion helps you. Have a good day!!

  5. #5
    Registered User
    Join Date
    03-07-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Create new sheet and copy data automatically using VB

    Thanks for your reply,

    I am looking to create a new tab for each order that is created and logged. I have allowed for 500 rows in the original code, I feel this should be far more than I need ever. I plan on starting a new sheet every month to keep the file size small and easily manageable, and have a single master spreadsheet to allow me to reference every order on a single sheet.

    thanks,
    James

  6. #6
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Create new sheet and copy data automatically using VB

    Try this. I m not sure if this is what you wanted...

    order tracker help file.xlsm

  7. #7
    Registered User
    Join Date
    03-07-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Create new sheet and copy data automatically using VB

    Hi Jraj1106,

    Thanks for this. Do I have to open it any particular way or do anything to make this automated? It seems to not do anything, but this is probably my lack of excel knowledge


    thanks,

  8. #8
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Create new sheet and copy data automatically using VB

    You just have to run the macro. I have only 10 orders. Just to test...

    order tracker help file.xlsm

  9. #9
    Registered User
    Join Date
    03-07-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Create new sheet and copy data automatically using VB

    Yip my understanding of Excel!! It works great, I get a 'run time error 28' Out of stack space if I add another row and run the macro again. It is fine if I delete all the tabs after running the data, but this will interfere with the master spreadsheet that I copy the data from. Is there a way to stop the run time error.

+ 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