+ Reply to Thread
Results 1 to 4 of 4

Adding macro button to the Excel ribbon.

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    08-15-2005
    Location
    Oklahoma
    MS-Off Ver
    2010, 2013
    Posts
    113

    Adding macro button to the Excel ribbon.

    How do I add a macro button to the Excel ribbon when I start a new program? I generate files which have the same format and would like to either add macro buttons to the Excel ribbon or develop an Add-In that will simplify running the same macro.

    Any ideas how best to accomplish this?

    Thank you.
    Jim15

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,907

    Re: Adding macro button to the Excel ribbon.

    What version of Excel are you using?

    (You should update your profile to include that.)
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    08-15-2005
    Location
    Oklahoma
    MS-Off Ver
    2010, 2013
    Posts
    113

    Re: Adding macro button to the Excel ribbon.

    I did update.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,907

    Re: Adding macro button to the Excel ribbon.

    1. Create your macro in a Module (like Module1, but not a Worksheet module) in your PERSONAL.xlsb file. Make it a Public Sub.
    2. Right-click anywhere on the Ribbon, and select Customize the Ribbon.
    3. On the right, create a new Tab and then create a Group under it, or create a new Group within an existing Tab.
    4. On the left side, select Macros from the top dropdown then you will see a list of your public macros.
    5. Select the one you want and click Add to add it to your selected Group.

+ 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. Adding a macro to the toolbar/ribbon
    By Excel_vba in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-29-2013, 03:48 PM
  2. Customize Ribbon (Add Button / Assign Macro) in Excel 2010
    By JMax in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-08-2012, 04:46 PM
  3. Ribbon - Multiple xlam adding into single Ribbon tab
    By gooopil in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-09-2011, 03:40 PM
  4. Assign a relative macro to a Ribbon Button
    By CaioToOn! in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-31-2011, 05:13 PM
  5. Replies: 2
    Last Post: 09-09-2009, 08:38 PM
  6. Adding button to ribbon 2007
    By tapapad in forum Excel General
    Replies: 2
    Last Post: 11-14-2008, 12:32 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