Tag Archives: VBA

How to Split Spreadsheets in Excel Using VBA

Why Separate Sheets? An Excel workbook can have several worksheets. There’s a chance that those different sheets contain information that is unrelated and needs to be separated into separate workbooks. Problem: For example, imagine a corporate training hub preparing a document on training sessions planned

Guide: The Document Object Model in VBA

The logical structure of a document (Excel, HTML, XML, Word, etc) is called a “document object model.” It can be used to access and work on the properties, methods, and events of the object. For example, in a Word document, there could be shapes/pictures, text,

How to Use Paste Special in VBA (Examples)

Cut, copy, and paste are very popular commands that any user knows how to use. It is the same with Microsoft Excel as well. In fact, these commands are very useful in Excel when we want to replicate calculation steps or automate a calculation. As

Guide: Do Until Loops in VBA

Loops in VBA Just like any other programming language, VBA also provides several loops that help with the repeated execution of a specific piece of code for a certain number of iterations based on defined conditions. The list of loops provided by VBA are:  For

How to Find an Exact Match Using VBA

The Search Feature in Microsoft Excel Before digging into how to look for exact matches in VBA, I’ll give you some context with the easiest way to accomplish this goal — the search function in Excel. Microsoft Excel provides us with an excellent feature that

For Loops in VBA and the Continue Statement

Loops in VBA Loops are an essential part of any programming language because they help with the repeated running of any code snippet. Just like any other language, VBA offers the following loops to enable efficient programming: Do until Do while For Foreach In this