+ Reply to Thread
Results 1 to 4 of 4

Macro to make multiple buttons on 1 sheet for a list of items like a menu

  1. #1
    Registered User
    Join Date
    07-15-2009
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2003
    Posts
    1

    Macro to make multiple buttons on 1 sheet for a list of items like a menu

    Hi, I'm very new to programming but have a work question. I have a list of names that I'd like to place a button next to each. I have a separate worksheet for each name in the list. I've like the macro in the button to simply just go to the respective worksheet. I obviously know how to do this the hard way, 1 at a time, but is there anyway to write a macro to do this?

  2. #2
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Re: Macro to make multiple buttons on 1 sheet for a list of items like a menu

    Would you be able to post an example of your workbook?
    Just make up numbers and names if it's sensitive information.
    It'd be very helpful to know what kinda layout exactly we're talking about.
    =IF(AND(OR(BLONDE,BRUNETTE,REDHEAD),OR(MY PLACE,HER PLACE),ME),BOW-CHICKA-BOW-WOW,ANOTHER NIGHT ON THE INTERNET)

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Macro to make multiple buttons on 1 sheet for a list of items like a menu

    Why not just use hyperlinks? You can add them with VBA, some suggestions here

    http://www.excel-it.com/vba_examples.htm
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Macro to make multiple buttons on 1 sheet for a list of items like a menu

    Another option:

    For each corresponding sheet in your list, name a cell (say A1) on that sheet with the same name (exactly as it appears on the list). Then you can simply use the drop down in the Name Box to select the name and Excel will immediately navigate to that sheet.

    The Name Box is located just to the left of the formula bar and generally displays the active cell reference.

    To name a cell on the active sheet:
    Make the cell active
    Click into the Name Box and type a name
    Press the Enter key

+ 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