+ Reply to Thread
Results 1 to 7 of 7

Create automatic index

  1. #1
    Registered User
    Join Date
    02-14-2008
    Posts
    48

    Create automatic index

    Hi Guys
    Not sure if this is in the correct area or even if this can be accomplished.
    I have a master spreadsheet which contains buttons that when used inserts another sheet behind the master. I want to know if, when a new sheet is inserted by using the buttons it will automatically list the new sheet on the master spreadsheet, thereby creating an index of sheets.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Slough
    MS-Off Ver
    Excel 2007
    Posts
    469

    Re: Create automatic index

    Where do you want the indexed sheets to be written? Cell wise of course.

    Danny

  3. #3
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Slough
    MS-Off Ver
    Excel 2007
    Posts
    469

    Re: Create automatic index

    Hi Mearsy,

    Personally, the way I would do this is to set the code below up as a module and then tell it to call the module from your subs so that on a click of either of the buttons. Once the sheet has been created, it will be listed.

    Please Login or Register  to view this content.
    Once that is set up as a module. Write in the existing codes.

    Please Login or Register  to view this content.
    Regards

    Danny

  4. #4
    Registered User
    Join Date
    02-14-2008
    Posts
    48

    Re: Create automatic index

    Hi Danny
    Thanks that's great it works, but if I wanted it in row 20?
    Many thanks

  5. #5
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Slough
    MS-Off Ver
    Excel 2007
    Posts
    469

    Re: Create automatic index

    You mean row 20 and continue down from there?

  6. #6
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Slough
    MS-Off Ver
    Excel 2007
    Posts
    469

    Re: Create automatic index

    Try
    Please Login or Register  to view this content.
    This will put it in H20 down. Change the 8 if you want to change the column and if you want it to START at a different row then change where it says i = 20.

    Regards

    Danny

  7. #7
    Registered User
    Join Date
    02-14-2008
    Posts
    48

    Re: Create automatic index

    Hi Danny

    This works but it puts the index in the sheet I'm inputting, I want the index on the Master Sheet. The original code worked but I just wanted to move it down the sheet, i.e. row 20.
    Many thanks for your help.

+ 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