How to run a macro from a macro (from another workbook)

VBA Code Snippets

In VBA, there are several ways to run a macro from a macro, and even run a macro from another workbook. On forums, these methods are used interchangeably depending on the commenter’s personal preferences. This can lead to confusion for anybody trying to learn VBA. Depending on the method for running/calling the macro, the syntax is slightly … Read more

How to resize Excel sheet – 4 ways: manual & automatic

Auto resize excel sheet

This post looks at how to Resize an Excel sheet. It’s a common requirement for users and is especially useful when creating dashboards for different-size monitors. Every office I have ever worked in has been an equipment battleground. It didn’t matter what the equipment was; it just had to be better than everybody else. A new keyboard, … Read more

How to create a Sankey diagram in Excel

Sankey Diagrams in Excel

Sankey diagrams are used to show flow between two or more categories, where the width of each individual element is proportional to the flow rate. These chart types are available in Power BI, but are not natively available in Excel. However, today I want to show you that it is possible to create a Sankey diagram … Read more

Excel calculation mode keeps changing: How to fix it!

You’re probably already aware that Excel has two main calculation modes: automatic and manual. I’m sure everybody would prefer to use automatic calculation; however, formula complexity and large data sets can cause spreadsheet calculation to be slow. As a result, some users set Excel to manual calculation mode. The differences between these two calculation modes can … Read more

How to close VBA UserForm: Hide vs Unload

Close VBA UserForm

VBA UserForms are a key tool for managing user interactions. When UserForms are well designed, they guide users through the options and settings without any help file or guidance. However, from my own UserForm development, I know one of the most overlooked aspects is how to close VBA UserForms. Is it best to hide or unload the … Read more