+ Reply to Thread
Results 1 to 3 of 3

Excel macro to autofill a list and create new worksheets with names from the list

  1. #1
    Registered User
    Join Date
    03-23-2020
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    2

    Excel macro to autofill a list and create new worksheets with names from the list

    Hi,

    I'm working on a side project to create an engineering tolerance stack template on excel and I was thinking about using Macros to automate majority of the process.

    My company already has a template that exists, but to replicate this template on additional new worksheets I'd have to copy, paste and rename it manually.

    I have managed to record a macro that copies the template and paste it on a new worksheet, but I am unable to rename it to a sequential name (eg. Risk 1, Risk 2, Risk 3...)

    I also tried recording a macro that autofills from a list and tried renaming it from the cell range but I can't add new lines of autofill each time I start the macro.

    Can anyone provide some advice on how I should approach this? I have a feeling my concept for the macro has a few fundamental errors and there is a much simpler way to do it.

    I've included the actual template that I am working on in the attachment for reference.

    (P.S. I'm not excel VBA trained, I found what was available online and tweaked a little bit here and there, so I apologise in advance if I sound like I know nothing because that is probably true)

    Thanks Guys!
    Attached Files Attached Files
    Last edited by fms006; 03-24-2020 at 05:39 PM.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Excel macro to autofill a list and create new worksheets with names from the list

    Hi & welcome to the board.
    Rather than copy/paste every time, create a template & just copy that
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-23-2020
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    2

    Re: Excel macro to autofill a list and create new worksheets with names from the list

    Hi Fluff13,

    Thank you very much, its performing as intended.

    I can kind of understand the part where we copy and rename the sheets, but I'm not sure about the part where the it is doing the autofill and checking if the sheet exists.

    If it is not too much trouble, could you explain what the code is doing?

    Thank you again.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Create new worksheets with names from a list
    By daniel_t in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-20-2013, 03:21 AM
  2. Create a list in one worksheet of the other worksheets' names
    By Kelli in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  3. Create a list in one worksheet of the other worksheets' names
    By Kelli in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 07:05 AM
  4. Create a list in one worksheet of the other worksheets' names
    By Kelli in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 AM
  5. [SOLVED] Create a list in one worksheet of the other worksheets' names
    By Kelli in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  6. [SOLVED] Create a list in one worksheet of the other worksheets' names
    By Kelli in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  7. Create a list in one worksheet of the other worksheets' names
    By Kelli in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  8. Create a list in one worksheet of the other worksheets' names
    By Kelli in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-07-2005, 04:05 PM

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