Excel VBA UserForm Toolbox Missing? Fix It Fast
In this article
The Toolbox in the Excel VBA editor is missing because it is hidden or because the UserForm is not in design mode. Press F4 or click View > Toolbox to bring it back, and make sure the UserForm window is active and the Design Mode button on the Toolbar is pressed in. If the Toolbox command is greyed out, you are almost certainly editing code rather than designing the form; click the form's grey title bar to select it, then try again.
What You'll Need
- Excel on Windows with the VBA editor available (the Toolbox is a Windows-only feature of the VBA IDE; Excel for Mac does not show a Toolbox, so Mac users add controls by dragging from the Toolbox equivalent that is not present and must build forms differently or use Windows).
- A workbook saved as .xlsm or .xlsb so macros and UserForms are retained.
- Access to the VBA editor: press Alt+F11 (Windows).
- Trust settings that allow macros to run, since a disabled macro environment can prevent forms from opening normally.
Step-by-Step
- Open the VBA editor. In Excel, press Alt+F11. If nothing happens, the workbook may have macros disabled; enable them from the yellow message bar or Trust Center before continuing. Menu labels can differ slightly by Excel version and region.
- Insert or open a UserForm. In the Project Explorer (usually on the left), right-click your workbook project, choose Insert > UserForm. A new blank form appears. If you already have a form, double-click it in the Project Explorer to open it.
- Select the form so it is in design mode. Click the grey title bar of the UserForm window. The form must be the active window; if the code window has focus, the Toolbox stays unavailable.
- Show the Toolbox with the menu. On the VBA editor menu bar click View > Toolbox. This is the most reliable method and works even if the toolbar button is hidden.
- Or use the keyboard shortcut. Press F4. In the VBA editor F4 toggles the Toolbox (and the Properties window uses a different shortcut, so F4 is safe here).
- Or use the Toolbar button. On the standard toolbar, click the Toolbox button (it looks like a small hammer and wrench). If you cannot see it, right-click the toolbar area and make sure the Standard toolbar is ticked.
- Check the form is not running. If the form is displayed as a running dialog, close it with the X or by pressing Esc in the form, then return to the editor. The Toolbox only appears while designing, not while the form is running.
- Dock or float the Toolbox. If the Toolbox appears but is tiny or off-screen, drag it by its title bar to a visible spot, or double-click its title bar to dock it against an edge of the editor window.
- Add controls. Click a control in the Toolbox (for example CommandButton or TextBox), then click or drag on the form to place it. Drag from the Toolbox onto the form also works.
- Save and test. Press Ctrl+S to save the workbook, then run the form with F5 while the form is selected. Close the running form and confirm the Toolbox returns when you select the form again.
Common Mistakes
- Looking for the Toolbox while in a code window. The Toolbox is context-sensitive; it only shows for a UserForm in design mode. Click the form first.
- Confusing the Toolbox with the Toolbox button being hidden. The command may exist but the toolbar button is not displayed. Use View > Toolbox instead of hunting for the button.
- Running the form and expecting to edit it. A running form is a dialog, not a design surface. Stop or close it before editing.
- Using Excel for Mac and expecting the same IDE. The Mac VBA editor does not provide the same Toolbox and form designer experience; forms built on Windows may not behave identically on Mac.
- Working in a file saved as .xlsx. UserForms require a macro-enabled format. Save as .xlsm before adding forms or controls.
- Assuming a missing Toolbox means a broken install. In most cases it is simply hidden or the wrong window has focus. Repairing Office is rarely needed.
Tips
- Use F4 as a quick toggle while designing; it is faster than the menu.
- Keep the Properties window open (press F4 when a control is selected, or use View > Properties Window) so you can rename controls as you add them.
- Name controls meaningfully (for example
btnSave,txtName) as you place them; renaming later means updating code references. - If you accidentally close the Toolbox, it is not lost; it is just hidden and returns with View > Toolbox.
- Save often. The VBA editor does not autosave, and a crash can lose form layout work.
- If you share the workbook, note that ActiveX controls and forms can behave differently across machines and Office versions; test on the target machine.
Troubleshooting
View > Toolbox is greyed out. The active window is not a form in design mode. Close any running form, click the form's title bar in the editor, and try again. If you only have a code module open, insert a UserForm first.
F4 does nothing. Another window may have focus, or an add-in has captured the key. Click inside the VBA editor first, then press F4. If it still fails, use the menu path.
The Toolbox appears off-screen. This can happen after changing monitor setups. Use View > Toolbox to toggle it off and on, then drag it back. If it remains unreachable, closing and reopening the VBA editor (Alt+Q then Alt+F11) usually resets its position.
Controls cannot be added. Confirm the form is in design mode and not running. If the form is locked or the project is protected, unprotect the VBA project with the correct password before editing.
The form will not open at all. Check that macros are enabled and the file is saved as macro-enabled. If the workbook came from another source, it may be blocked; review the Trust Center settings and only enable content you trust.
If that did not work. Close Excel completely, reopen the workbook, and try again. As a last resort, check for Office updates through the official update channel; avoid reinstalling unless the VBA editor itself is failing across all workbooks.
Frequently Asked Questions
Why is my Toolbox greyed out in Excel VBA?
Because the active window is not a UserForm in design mode. Select the form by clicking its title bar, or insert a new UserForm, and the Toolbox becomes available.
What is the keyboard shortcut for the Toolbox?
F4 toggles the Toolbox when a UserForm is active in the VBA editor. View > Toolbox does the same from the menu.
Does Excel for Mac have the VBA Toolbox?
The Mac VBA editor does not offer the same form designer and Toolbox as Windows. Forms are best designed on Windows; expect differences when opening the same workbook on Mac.
Can I get the Toolbox back without restarting Excel?
Yes. Use View > Toolbox or press F4. Restarting is only needed if the editor itself is unresponsive.
Why did my controls disappear from the form?
They may be hidden behind other controls or the form may have been resized. Check the form's layout in design mode and use the Properties window to confirm each control's position and visibility.
Is the Toolbox the same as the Properties window?
No. The Toolbox holds the controls you drag onto a form; the Properties window edits the selected control's settings. Both are separate windows in the VBA editor.