Author: Oscar Cronquist Article last updated on August 26, 2020

personal macros1

Save links to your favorite macros in a personal tab on the ribbon for easy access and become more productive. I will also show you in this article how to create a personal *.xlsb file that opens automatically every time you start Excel.

I also recommend the Quick Access Toolbar for macros that you use even more often. They are small icons that you can add and link macros to located above the ribbon tabs.

Ribbon tabs have greatly improved user experience since the introduction in Excel 2007, they make it easier for you to find the tool you are looking for. They are categorized in tabs and you can create and customize one easily yourself.

You can also customize pop-up menus that appear when you right/click on a cell or object.

There are a few ways to access the ribbon customization settings:

  • File -> Options -> Customize ribbon
  • Right-click on the ribbon -> Customize the Ribbon...

Create a new tab on the ribbon

Add your personal Excel Macros to the ribbon

Excel allows you to customize the ribbon and link your personal macros to a button each. So you can quickly and easily access your favorite macros.

  1. Go to "File" on the ribbon.
  2. Click "Options".
  3. Click "Customize Ribbon".
    Create new tab on the ribbon
  4. Click "New tab" button, see image above.
  5. Click "Rename" button.
  6. Rename the tab, I named it "Personal macros".
  7. Click OK button to dismiss the "Rename" dialog box.
  8. Click OK button to dismiss the "Excel Options" dialog box.

Back to top

How to rearrange tabs on the ribbon

Rearrange tabs on the ribbon1

  1. Click on File on the ribbon located on the top left corner of your Excel window, see image above.
  2. Click Options in the lower-left corner. A dialog box appears.
  3. Click "Customize Ribbon".
    Rearrange tabs on the ribbon2
  4. Select one of the tabs, I selected the "Home" tab in this example.
    Rearrange tabs on the ribbon3
  5. Click on one of the arrow buttons to move the "Home" tab on the ribbon. The order is important, the top item will be the left-most item on the ribbon.
    Rearrange tabs on the ribbon4
  6. Click OK button.

Back to top

How to hide tabs on the ribbon

  1. Click on File on the ribbon.
  2. Click Options in the lower-left corner. A dialog box appears.
  3. Click "Customize Ribbon".
    Hide tab on the ribbon
  4. Disable the checkbox next to a ribbon tab name you want to hide.
  5. Click OK button.

Back to top

How to unhide tabs on the ribbon

  1. Click on File on the ribbon.
  2. Click Options in the lower-left corner. A dialog box appears.
  3. Click "Customize Ribbon".
    Hide tab on the ribbon
  4. Enable the checkbox next to a ribbon tab name you want to unhide.
  5. Click OK button.

Back to top

How to remove tabs on the ribbon

Remove tab on the ribbon

  1. Click on File on the ribbon.
  2. Click Options in the lower-left corner. A dialog box appears.
  3. Click "Customize Ribbon".
  4. Right-click on the tab you want to delete.
    A pop-up menu appears.
  5. Click "Remove" on the pop-up menu.
  6. Click OK button.

Back to top

How to reset tabs on the ribbon

Reset tabs on the ribbon

  1. Click on File.
  2. Click Options in the lower-left corner. A dialog box appears.
  3. Click "Customize Ribbon".
  4. Click the "Reset" button.
  5. Click "Reset all customizations".
  6. Click OK button.

Back to top

Create a button and link to macro

Add your personal Excel Macros to the ribbon customize ribbon

  1. Select macros from the drop-down list, see image above.
  2. There are now macros below the drop-down list, select a macro.
  3. Click "Add" button.
    customize ribbon add macro
  4. Click "Rename". A new dialog box appears.
    customize ribbon add macro icon
  5. Pick an icon and type a new name.
  6. Click OK button.
  7. Click OK button again.

link personal macros to ribbon

Back to top

Create a personal *.xlsb file

  1. Create a new workbook (CTRL + n)
  2. Go to VB Editor (Alt + F11)
  3. Insert a module
  4. Copy macros to module
  5. Exit VB Editor and return to excel
  6. Save workbook as a *.xlsb file to this folder:
    C:\Users\<username>\AppData\Roaming\Microsoft\Excel\XLSTART
  7. Exit excel
  8. Start excel
  9. Your personal.xlsb file opens automatically
  10. Go to tab "View" on the ribbon
  11. Click "Hide" button
    personal macro file - hide workbook
  12. Exit excel

A new workbook is created next time you start Excel. The personal.xlsb opens but is hidden.

Back to top

How to save VBA code to the *.xlsb file

Add VBA code to file

You can now save macros and User Defined Functions to the Personal.xlsb file.

  1. Press Alt+F11 to open the Visual Basic Editor.
  2. Locate the Personal.xlsb workbook in the Project Explorer.
  3. Click + (plus sign) next to workbook name to expand contents.
  4. Expand contents in Modules folder.
  5. Double click on module named Module1.
  6. Paste code to window, see image above.
  7. Click "Save" button on the top menu.

Back to top

Recommended macros for your ribbon

Remove print preview lines (Page Breaks)

Have you ever wondered how these lines got there on a worksheet? They show where pages will break, in other […]

Remove print preview lines (Page Breaks)

Highlight row and column of selected cell

Today I would like to share with you these small event handler procedures that make it easier for you to […]

Highlight row and column of selected cell

Back to top

Example macros to save in your personal.xlsb file

The following links take you to articles demonstrating macros that you may find useful.

Back to top

How to show tabs only on the ribbon

Show only tabs on the ribbon

Double-click with left mouse button on any tab name to toggle between showing and hiding the buttons on the ribbon.

This is great if you temporarily need more cells visible on your worksheet.

Show only tabs on the ribbon1

You can also click the up-arrow located on the top right corner. This will show a pop-up menu with three options:

  • Auto-hide Ribbon
  • Show Tabs
  • Show Tabs and Commands

Click on "Show Tabs", the command buttons are now hidden.

Back to top

How to autohide the ribbon

Show only tabs on the ribbon1

Click the up-arrow located on the top right corner. This will show a pop-up menu with three options:

  • Auto-hide Ribbon
  • Show Tabs
  • Show Tabs and Commands

Click on "Auto-hide Ribbon", this will completely hide the ribbon and maximize the Excel window if it isn't already.

Auto hide the ribbon

Move the mouse to the top of your screen to show the top bar, click on the top bar to temporarily show the ribbon again.

Click on the command button or command buttons you want to use, as soon as you click below the ribbon it disappears again.

Back to top

How to show the Draw tab on the ribbon

How to show DRAW tab on the ribbon

The Draw tab is available in Excel 2019 and Excel 365 subscription, however, some command buttons appear only in Excel 365.

The Draw tab contains features that allow you to use your mouse, touchscreen or a digital pen to write text, notes, comments, etc.

  1. Click on File.
  2. Click Options in the lower-left corner. A dialog box appears.
  3. Click "Customize Ribbon".

Back to top

How to show the Developer tab on the ribbon

How to show the Developer tab on the ribbon

  1. Click on File.
  2. Click Options in the lower-left corner. A dialog box appears.
  3. Click "Customize Ribbon".
  4. Click the checkbox next to "Developer" to enable it.
  5. Click OK button.

Back to top

Read more

Copy your macros to a Personal Macro Workbook

Excel 2010 Customizable Ribbon

Quick Access Toolbar in Excel: how to customize, move, reset and share