+ Reply to Thread
Results 1 to 9 of 9

Macro-Button (form Control)

  1. #1
    Registered User
    Join Date
    11-10-2011
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    18

    Macro-Button (form Control)

    Hi All,

    I am trying to create a reference macro-button. The idea of this is to create a macro, say you create it on the output page and then select your US tab. Then you would insert a button and assign that macro to it, so every time you click the US Tab macro button it will automatically transfer you to the US tab.

    The problem is that I plan to add about 50+ sheets and I can’t create many excel buttons, since it will be overwhelming to the user. The question is, is there a way to create say a dropdown list with all the name of the tab and a Macro button adjacent to list and every time you change the name in your drop down list your macro would still work and transfer you to that tab?

    I have included a scrap-work book with the basics that I have explained above, I just can’t seem to get it to work for the half (using the drop down list). Any suggestions will be most appreciative. Thanks in advance guys.
    Attached Files Attached Files

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Macro-Button (form Control)

    Add this cod to Module1.
    Please Login or Register  to view this content.
    Then assign 'GotoTab' to the button.
    If posting code please use code tags, see here.

  3. #3
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Macro-Button (form Control)

    Hi mjali001
    This code is in the attached...let me know of issues
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  4. #4
    Registered User
    Join Date
    11-10-2011
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Macro-Button (form Control)

    Thanks alot!

  5. #5
    Registered User
    Join Date
    11-10-2011
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Macro-Button (form Control)

    Hi Guys,

    So I applied the macro's you've provided, the macro works terrfic in the scrap-book. The problem is when I try to insert the code to my actually workbook the macro does not seem to work? How Can I fix this issue? Please advise. My starting point is cell G30 instead of C13 and I have about 80tabs. I played around with teh ranges and it still doesnt seem to work.

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Macro-Button (form Control)

    Hi mjali001

    To what code are you referring?
    So I applied the macro's you've provided, the macro works terrfic in the scrap-book
    What's your actual workbook look like?
    Last edited by jaslake; 01-16-2013 at 05:19 PM.

  7. #7
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Macro-Button (form Control)

    All you need to do in the code I posted is change the cell reference from C13 to G30.

  8. #8
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Macro-Button (form Control)

    @Norie

    The OP does not have Tabs called

    Tabs.jpg

    So I'm thinking this code may not work
    Please Login or Register  to view this content.

  9. #9
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Macro-Button (form Control)

    Misread post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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