Tools Toolbar
Most of AutoMacro’s tools can be accessed via the Tools Toolbar inside the VBA Editor:
![vba tools toolbar](https://www.automateexcel.com/excel/wp-content/uploads/2024/03/tools-toolbar_all.png)
Some can also be accessed via the right-click menu:
![right click vba tools](https://www.automateexcel.com/excel/wp-content/uploads/2024/03/tools-right-click_en.png)
AI
![vba ai tools](https://www.automateexcel.com/excel/wp-content/uploads/2024/03/tools-menu-ai_all.png)
With an active subscription, you can access AutoMacro’s AI features:
![ai vba code generator](https://www.automateexcel.com/excel/wp-content/uploads/2024/01/ai-code-gen.png)
The AI tools include:
- AI Chat Bot
- AI Code Generator
- AI Code Commenter
- AI Code Explainer
- AI Code Debugger
Learn More about the AI features.
Code Explorer
![vba code explorer](https://www.automateexcel.com/excel/wp-content/uploads/2024/03/tools-menu-code-explorer_all.png)
AutoMacro’s Code Explorer improves upon the VBA Editor’s. By clicking on a code module, you can see it’s procedures. Double-click on the procedures to navigate to them.
![vba project explorer](https://www.automateexcel.com/excel/wp-content/uploads/2022/09/vba-project-explorer.png)
Find All
![vba find all](https://www.automateexcel.com/excel/wp-content/uploads/2024/03/tools-menu-find_all.png)
AutoMacro’s Find All feature mimics the Find All found in Visual Studio.
![vba editor find all](https://www.automateexcel.com/excel/wp-content/uploads/2022/09/right-click-find-all.png)
- Simply right-click on a word and click “Find All”
- Then you can see the location of each found reference.
- Click on a reference to go to it.
- Check which references you want to replace and do a “Replace All”
Comment / Uncomment Multiple Lines of Code
![vba comment code](https://www.automateexcel.com/excel/wp-content/uploads/2024/03/tools-menu-comment_all.png)
The comment / uncomment feature allows you to quickly comment or uncomment multiple lines of code at once. The feature is smart enough to identify when some lines of code are commented and others are not, so if you have a block of partially commented code, you can quickly standardize the commenting.
![comments / uncomment before and after](https://www.automateexcel.com/images/AutoMacro/comment-before-after.png)
The commenter is also available from the right-click menu and with the shortcut CTRL + ALT + C.
Display Line Numbers
![vba line numbers](https://www.automateexcel.com/excel/wp-content/uploads/2024/03/tools-menu-numbers_all.png)
Display Line Numbers adds line numbers to your VBA code. This can be helpful for reviewing code, especially if you print it.
![vba display line numbers](https://www.automateexcel.com/images/AutoMacro/display-line-numbers-before-after.png)
Sort Code
![vba sort code](https://www.automateexcel.com/excel/wp-content/uploads/2024/03/tools-menu-sort_all.png)
Sorting code, allows you to quickly re-arrange your code modules without copying/pasting.
![display line numbers toolbar](https://www.automateexcel.com/images/AutoMacro/vba-sort-code.png)
Auto Indent
![vba auto-indent](https://www.automateexcel.com/excel/wp-content/uploads/2024/03/tools-menu-indent_all.png)
Auto Indent adds proper code indentation to the active module.
Proper indentation makes your code easier to read and reduces the chances of errors.
By default the code indentation will indent all code one “tab” to start. This setting can be changed in the Settings Menu:
![auto indent before after](https://www.automateexcel.com/images/AutoMacro/autoindent-before-after.png)
Remove Excess Linebreaks
![vba linebreaks](https://www.automateexcel.com/excel/wp-content/uploads/2024/03/tools-menu-linebreaks-both_all.png)
Often when coding, blank lines can accumulate. The remove Excess Linebreaks tool (left button) scans your active code module and deletes blank lines whenever more than two consecutive blank lines are found. The right remove excess linebreak buttons, scans all of your code modules, removing excess linebreaks in them all.
Use this in conjunction with the Auto Indent tool to quickly clean up your code.
![remove excess line breaks before after](https://www.automateexcel.com/images/AutoMacro/remove-excess-linebreaks-before-after.png)
Mass Import / Export Modules
![vba import export modules](https://www.automateexcel.com/excel/wp-content/uploads/2024/03/tools-menu-import-export_all.png)
The Visual Basic Editor allows you to import or export modules and UserForms. Unfortunately, it only allows you to import or export one module at a time.
AutoMacro adds in the ability to mass import or export modules and UserForms. To access the features, use the toolbar buttons or right-click in the VBAProject window.
![mass import export modules](https://www.automateexcel.com/images/AutoMacro/mass-import-export-modules.png)
Back and Forward Buttons
![vba back forward buttons](https://www.automateexcel.com/excel/wp-content/uploads/2024/03/tools-menu-back-forward_all.png)
The Back button allows you to go back to the previous code location. The Forward button returns to the original code location.
The commands store your code position history, allowing you to jump back/forward several code positions.
Bookmarks
![vba bookmarks](https://www.automateexcel.com/excel/wp-content/uploads/2024/03/tools-menu-back-bookmarks_all.png)
Bookmarks are used to save code positions in a VBA Project.
Use the shortcut CTRL + ~ to create a bookmark (or the left toolbar button):
![vba code tools bookmarks before after](https://www.automateexcel.com/images/AutoMacro/bookmark-before-after.png)
and the shortcuts CTRL + 1 and CTRL + 2 to “jump” to the previous or next bookmarks (or the right toolbar button):
![vba code tools bookmarks toggle](https://www.automateexcel.com/images/AutoMacro/bookmarks-toggle.png)
Close All Windows
![vba close windows](https://www.automateexcel.com/excel/wp-content/uploads/2024/03/tools-menu-close_all.png)
Quickly close either all windows or all windows except the active window with these two buttons.
Copy UserForm Controls and Code
The Visual Basic Editor allows you to copy / paste controls from one UserForm to another. Unfortunately, when you do this the associated control code isn’t copy / pasted along with the control.
AutoMacro adds the ability to copy and paste the code along with the control. To access this feature, select your desired control(s) and select “Paste Special”. Then go to the destination UserForm and choose Paste Special to paste the control(s) and the associated code.
![copy paste userform control](https://www.automateexcel.com/images/AutoMacro/copy-paste-userform-control.png)
Clipboard History
![clipboard history](https://www.automateexcel.com/excel/wp-content/uploads/2024/03/vba-tools-clipboard-history_en.png)
The Clipboard History keeps a history of items copied to your clipboard, allowing you to easily paste them again in the future.
You can clear the history with the eraser button. Or disable this feature altogether from the Settings menu.
AutoMacro AI
Loop Builder
Start Automating Excel
![automacro](https://www.automateexcel.com/excel/wp-content/uploads/2024/04/automacro-salesCTA_en.png)