+ Reply to Thread
Results 1 to 6 of 6

Auto generate sheets using template sheet and upon data entry. Link to main sheet

  1. #1
    Registered User
    Join Date
    09-03-2013
    Location
    Virginia
    MS-Off Ver
    Excel 2010
    Posts
    23

    Auto generate sheets using template sheet and upon data entry. Link to main sheet

    I am trying to put together a workbook and lost my old scripts and need help rebuilding them with some additional features.

    My main sheet in Column A I have titles that I need to create separate sheets, with the title names, based on a template sheet. On each template sheet I have a cell that I need those titles placed in as well.


    I need the Main sheet to be interactive, where if i click on a title it goes to that title's specific sheet.


    Lastly, I dont know if this is possible but if I ever add another title to the Main sheet in column A I would like it to automatically create a sheet for this title based on the template sheet.

    Any and all help would be greatly appreciated. I had scripts for the first two items but not the third and unfortunately I am not sure what happened to the sheet I had them saved in.
    Last edited by Coubs3; 04-02-2017 at 12:56 PM. Reason: New Title

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,009

    Re: Lost some of my scripts and need to make a new one

    Please edit the Thread Title .... to something more appropriate for others to search in the future.

    Paste this macro into a Routine Module in Sheet 1 ... or your INDEX sheet:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-03-2013
    Location
    Virginia
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Auto generate sheets using template sheet and upon data entry. Link to main sheet

    I was able to find some of my old scripts, but now I need help with the hyperlinking. The script below includes cell A1 and I do not want that. I want it to hyperlink to all my sheets based on the list from A2 and down the column. I guess I am not understanding how to set the range properly.


    Please Login or Register  to view this content.

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Auto generate sheets using template sheet and upon data entry. Link to main sheet

    How about this ?

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  5. #5
    Registered User
    Join Date
    09-03-2013
    Location
    Virginia
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Auto generate sheets using template sheet and upon data entry. Link to main sheet

    Perfect that worked. Now if I could get a little more help.

    1) I would like to combine the two scripts I have here.
    2) Then for the hyperlinking section is it possible to alter the way the hyperlinks look, font, size, etc?


    The end goal is to have a recipe workbook and attach a single macro to a button to generate sheets for newly input recipe names without duplication.


    Please Login or Register  to view this content.

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    09-03-2013
    Location
    Virginia
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Auto generate sheets using template sheet and upon data entry. Link to main sheet

    I was able to figure it out for anyone else looking for something similar to this. The code is below. This auto creates tabs/sheets from a list using a template sheet I had set up and then applies hyperlinks to the names in the list to navigate to those new tabs/sheets. This will not auto generate sheets upon data entry however. I am actually going to attach this macro to a button to generate sheets. It will not duplicate either.



    Please Login or Register  to view this content.
    Last edited by Coubs3; 04-05-2017 at 09:51 AM.

+ 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. Lost: How do I make a Macro to tabulate names and entries
    By 2014hunter in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-14-2015, 10:47 PM
  2. Replies: 1
    Last Post: 04-14-2015, 06:22 PM
  3. Lost spaces and Zeros lost when replacing text
    By renshawk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-29-2013, 04:50 AM
  4. Need help on CMS VB Scripts
    By sudhakara in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-06-2013, 07:21 AM
  5. For a website, are Excel scripts better than other programming language scripts?
    By Advice Pro in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-01-2009, 02:07 PM
  6. [SOLVED] How do I keep a running total of pounds lost and percentage lost
    By angel5959 in forum Excel General
    Replies: 4
    Last Post: 01-26-2006, 05:20 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