Best Excel Tutorial

Excel Skills Simplified: Tutorials That Actually Work

How to use VBA to manipulate dates and times in Excel

Manipulating dates and times in Excel using VBA opens up a world of automation and custom functionality that goes far beyond what standard worksheet functions can offer. While Excel itself is quite good with dates (storing them as serial numbers), VBA gives you programmatic control to parse, calculate, format, and interact with dates and times in powerful ways. Let’s see how you can wield this capability.

Read More

How to Avoid Using Select in Excel VBA Macros

When learning to automate Excel tasks with VBA, you’ll naturally start by recording macros. This is a common first approach. The macro recorder generates code that relies heavily on the Select method. It selects a worksheet, then a range, before performing actions. While this approach works, it’s less efficient. It makes your code slower and more error-prone, especially when users switch between sheets. Fortunately, VBA offers more direct ways to interact with worksheets and ranges without the need for explicit selection.

Read More