+ Reply to Thread
Results 1 to 6 of 6

Enter a name to Create a new sheet with a template and sheet name is the person's name

  1. #1
    Registered User
    Join Date
    09-07-2012
    Location
    China
    MS-Off Ver
    Excel 2010
    Posts
    40

    Enter a name to Create a new sheet with a template and sheet name is the person's name

    I need a VBA to create a set number of sheets based upon the number entered. But each sheet will have the same template entered into it.

    Then, Title the sheets based upon the names written.

    and finally have the top information auto entered into each report (sheet)

    Im newer to VBA so if anyone can help, i'd be greatly grateful.

    ill attach the workbook:
    Copy of report form.xls

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Enter a name to Create a new sheet with a template and sheet name is the person's name

    Hi, Kram222,

    please try this code as a start. You need to have unique names for the students (or maybe their ID) otherwise a run time error while trying to rename the sheets might occur:

    Please Login or Register  to view this content.
    Ciao,
    Holger
    Attached Files Attached Files
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Enter a name to Create a new sheet with a template and sheet name is the person's name

    Hello Kram222,

    I am not sure as to which sheet you want to use as your "Template", but the attached WorkBook should give you a start.

    If you need to use another Sheet as your "Template", just change the Code accordingly.

    The Code already in the sample WorkBook:

    Please Login or Register  to view this content.
    Also see the "Please consider note at the bottom of this post.
    Attached Files Attached Files
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  4. #4
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Enter a name to Create a new sheet with a template and sheet name is the person's name

    Maybe try this:

    Please Login or Register  to view this content.
    abousetta
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  5. #5
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Enter a name to Create a new sheet with a template and sheet name is the person's name

    Hello Kram222,

    I have revised the sample WorkBook for you consideration.

    Please try the attached Workbook.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    09-07-2012
    Location
    China
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: Enter a name to Create a new sheet with a template and sheet name is the person's name

    Quote Originally Posted by HaHoBe View Post
    Hi, Kram222,

    please try this code as a start. You need to have unique names for the students (or maybe their ID) otherwise a run time error while trying to rename the sheets might occur:

    Please Login or Register  to view this content.
    Ciao,
    Holger

    This Works great! The coding works well enough for what i need it to do! thanks again! you really saved me.

+ 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