+ Reply to Thread
Results 1 to 8 of 8

Setting up an alphabetical index which can be clicked or scrolled to

  1. #1
    Registered User
    Join Date
    12-22-2015
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    6

    Setting up an alphabetical index which can be clicked or scrolled to

    I've created an Excel file to store definitions alphabetically that I will be adding to regularly.
    I have set up a macro to sort my columns alphabetically whenever I add new words, but I want to set up some sort of index or list of the letters of the alphabet at the top (or anywhere) so that I can quickly go to different words that start with the letter I click (similar to a dictionary). I have considered using hyperlinks, but I'm unsure how effective that would be since I would be adding new words daily and the list would move.

    Can this be done in any way Excel?

    Thanks in advance.

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Setting up an alphabetical index which can be clicked or scrolled to

    You can use Range.Find and Application.GoTo
    They're both in the VBA help search box and you can search also search this site or Google for additional information.
    If you want me to help you beyond that you need to upload a workbook so I can see your data.

    ViewPic
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  3. #3
    Registered User
    Join Date
    12-22-2015
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    6

    Re: Setting up an alphabetical index which can be clicked or scrolled to

    Here it is, don't mind the first column that was just my attempt at some sort of sorting system.
    Attached Files Attached Files

  4. #4
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Setting up an alphabetical index which can be clicked or scrolled to

    Put this formula in Cell G2. And in G1 Put the Letter you want to goto
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    And this is a cleaned up Sort Macro

    Please Login or Register  to view this content.
    Last edited by mike7952; 12-26-2015 at 09:12 PM.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  5. #5
    Registered User
    Join Date
    12-22-2015
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    6

    Re: Setting up an alphabetical index which can be clicked or scrolled to

    Thank you for the formula! I've tried to modify it a bit so that I have the link set up for every letter ready to click, but the name always seems to display 0? It links correctly however.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    I'm putting the formula in A1, B1, C1 etc. and I've put the letter A in AJ2, B in AJ3 etc.
    Any ideas?

  6. #6
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Setting up an alphabetical index which can be clicked or scrolled to

    This code would go into the sheet module. Right click on the sheet tab and choose view code, then paste this code into the white window.
    There's a working version installed in the file below. Make sure you enable macros, type a letter in B1 and it will jump to the first word that begins with that letter.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Setting up an alphabetical index which can be clicked or scrolled to

    The Begins With option in Autofilter sounds like it would be superior to anything that we could put together.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  8. #8
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Setting up an alphabetical index which can be clicked or scrolled to

    Put this into H1 and drag across.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Copy tabs names to index sheet in alphabetical order
    By cjharley1450 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-23-2015, 01:00 PM
  2. [SOLVED] Index-Match which does not require alphabetical sort of names
    By FivestarMac in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-07-2015, 12:39 PM
  3. [SOLVED] INDEX names in alphabetical order. Horizontally.
    By JasonNeedsHelp in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-20-2013, 11:43 AM
  4. [SOLVED] Creating a unique alphabetical list (using INDEX and MATCH functions)
    By mullahraheil in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-29-2013, 07:17 AM
  5. Preventing duplicate entries and sorting by alphabetical using Index feature
    By Potsdamerplatz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-17-2012, 03:40 PM
  6. Scroll textbox if the adjacent is scrolled
    By fredpox in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-27-2010, 04:41 PM
  7. Detect # scrolled-out rows and column
    By toreadore in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-30-2006, 05:45 AM

Tags for this Thread

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