How To Create A Professional, Dynamic Sidebar Menu In Excel
Are you tired of staring at the same old Excel grid? If you’re building tools for clients or managing complex internal data, the standard tab-based navigation can feel clunky and amateur. Today, we are going to change that by building a Modern, Dynamic Sidebar Menu from scratch using Excel VBA.
In this training, I’ll show you how to turn a blank workbook into a professional application interface. Even if you have never touched a line of code, this guide will walk you through the process step-by-step.
The Visual Design: Beyond the Grid
The first step to a great user interface is the visual layer. We start by inserting basic shapes—rectangles and rounded rectangles—to serve as our menu background and buttons. By using the ‘Format Shape’ options, we can add high-quality images or textures to give our menu a premium feel.
Key design tips include:
- No Outlines: Removing shape outlines creates a cleaner, more modern look.
- Iconography: Integrating custom icons helps users navigate intuitively. We use PNGs with transparency to ensure they blend perfectly with the menu background.
- Naming Convention: This is the most critical part. To make our VBA work efficiently, we name our shapes systematically (e.g., MenuBtn1, MenuIcon1). This allows a single macro to handle multiple buttons.
- Simple VBA: The Engine of Your Menu
Once the design is set, we dive into the Developer Tab. We create a single macro called Menu_Select. This macro uses the Application.Caller function to identify which button was clicked. By stripping the text from the shape name, the code knows exactly which menu item to highlight.
We also implement a ‘Toggle’ feature. With just a few lines of code, the menu can expand to show full text descriptions or shrink to show only icons. This maximizes screen real estate, a vital feature for data-heavy dashboards.
Dynamic Column Control
A menu is only useful if it takes you somewhere. We’ve designed this system to show or hide specific columns based on your selection. For example, clicking ‘Settings’ might show columns D through M, while clicking ‘Customers’ hides those and reveals a completely different set of data. This creates a seamless “single-page application” feel within Excel.
Why This Matters for Freelancers
If you are a freelancer, the “wow factor” of your deliverables is what earns you repeat business. A dynamic menu doesn’t just look good; it improves usability and protects your data by controlling what the user sees at any given time.
Conclusion
Creating a professional UI in Excel doesn’t have to be complicated. By combining clever shape naming with basic VBA logic, you can build tools that look and feel like custom software.
Ready to get started? Watch the full video tutorial and download the free template to follow along!