VBA Statements: The Building Blocks of VBA Programs
VBA programs are nothing but a sequence of VBA statements. They are the cornerstone of VBA programs. Here, we explore these vital elements of VBA coding.
Tags content that has to do with VBA coding or programming.
VBA programs are nothing but a sequence of VBA statements. They are the cornerstone of VBA programs. Here, we explore these vital elements of VBA coding.
VBA programs often include repetitive execution paths. The While – Wend statement enables such loops. Here, we explore this crucial code construct in-depth.
VBA programs often include repetitive execution paths. The Do – Loop Until statement enables such loops. Here, we explore this vital code construct in-depth.
VBA programs often include repetitive execution paths. The Do – Loop While statement enables such loops. Here, we explore this crucial code construct in-depth.
VBA programs often include repetitive execution paths. The Do Until – Loop statement enables such loops. Here, we explore this vital code construct in-depth.
VBA programs often include repetitive execution paths. The Do While – Loop statement enables such loops. Here, we explore this crucial code construct in-depth.
VBA programs often have repetitive execution paths. The For Each – Next statement enables such loops. Here, we explore this vital code construct in-depth.
VBA programs often have repetitive execution paths. The For – Next statement enables such VBA loops. Here, we explore this crucial code construct in-depth.
Here, you’ll explore the On Error Statement which transfers control to error-handling subroutines when a runtime error occurs.
Here, you’ll explore the On – GoSub statement which conditionally transfers control between a code-line and a subroutine in the same scope.
Here, you’ll explore the GoSub – Return statement which unconditionally transfers control between a code-line and a subroutine in the same scope.
Here, you’ll explore the On – GoTo statement which conditionally transfers control to any labelled statement within the same scope (i.e., procedure).
Here, you’ll explore the GoTo statement which unconditionally transfers control to any labelled statement in the same scope (i.e., procedure).
Here, you’ll explore the Call statement which transfers control between procedures and DLLs. It is a VBA jump statement for non-sequential code execution.
Here, you’ll explore the Exit statement which instantly leaves a block. It is one of several VBA jump statements that enables non-sequential code execution.
Expression statements do the heavy lifting in VBA. That is because they are prevalent in typical VBA programs. This article introduces these workhorses.
Most VBA programs feature decision-based execution paths. The Select Case statement is one of two VBA decision statements. So, its exploration is vital.
Most VBA programs feature decision-based execution paths. The If statement is one of two VBA decision statement. So, its exploration is vital.
The Enum statement declares VBA enumerations or Enums. Enums are widely used in VBA programs, so it’s useful exploring their declaration, as you’ll do here.
The Const statement declares constants in VBA. Constants are prevalent in VBA programs, so it is useful to explore their declaration, as you’ll do here.
The Dim statement declares VBA variables and objects. It is ubiquitous in most VBA programs, so it is worthwhile exploring it in-depth as you’ll do here.
The Function statement declares VBA functions. All executable VBA code is in such procedures, so this post’s detailing of the Function statement is vital.
The Sub statement declares VBA subroutines. All executable VBA code is in such procedures, so, exploring the Sub statement, as you’ll do here, is vital.
VBA logical operators – symbols that instruct the compiler to perform logical operations like conjunction and disjunction – are explored herein.
VBA comparison operators – symbols that instruct the compiler to perform relational, object equality, and string match operations- are explored herein.
VBA arithmetic operators – symbols that instruct the compiler to perform basic math (add, divide, powers, modulus, etc.) – are explored herein.
VBA concatenation operators – symbols that instruct the compiler to join two String operands together – are explored herein.
VBA member access operators – symbols that ease the referencing of class or object members (i.e., properties, methods, or events) – are explored herein.
The VBA assignment operator, a symbol that tells the compiler to store the value of the operand on its right in the operand on its left, is explored herein.
VBA operators – special tokens that instruct the compiler to perform operations on values or value-holding program identifiers – are introduced herein.
VBA programs often feature named discrete entities called identifiers (e.g., variables). Here, we get familiar with these vital program elements, their attributes, and the rules for legally naming them in VBA.
Every developer has IDE preferences for an efficient workflow. Here, we explore VBA project customization with the Project Properties dialog box.
Every developer has IDE preferences for an efficient workflow. Here, we explore Excel VBA editor customization available in the Options dialog box.
Every developer has IDE preferences for an efficient workflow. Here, we explore Excel VBA editor customization for menu, toolbar and userform toolbox.
The Excel VBA coding dojo, the VBA Editor, has many useful windows. Here, you’ll explore its Watch window which lets you statically track variable values
The Excel VBA coding dojo, the VBA Editor, has many useful windows. Here, you’ll explore its Locals window which lets you dynamically track variable values.
The Excel VBA coding dojo, the VBA Editor, has a myriad of very useful windows. Here, you’ll explore its Immediate Window which takes code snapshots.
The Excel VBA coding dojo, the VBA Editor, has a myriad of very useful windows. Here, you’ll explore its Code Window and its glut of features.
The Excel VBA coding dojo, the VBA Editor, has a myriad of very useful windows. Here, you’ll explore its Properties Window.
To master Excel VBA you’ll have to get comfy in its coding dojo, the VBA Editor. Here, you’ll explore its essential navigation tool, the Project Explorer.
To master Excel VBA you’ll have to get comfy in its coding dojo, the VBA Editor. Here, you’ll take a deep-dive into each VBA editor toolbar and its icons.
To master Excel VBA you’ll have to get comfy in its coding dojo, the VBA Editor. Here, you’ll delve into the VBA Editor Menu Bar and its trove of menus.
To master Excel VBA you’ll have to get comfy in its coding dojo, the VBA Editor. Here, you’ll learn how to open the VBA editor using several methods.
Learn guidelines for writing efficient Excel VBA code, sure to help you build Excel VBA applications that do more with less.
Learn guidelines for maintainable Excel VBA code that will help you build Excel VBA applications that are easier to edit or adapt.
Learn guidelines for writing reliable Excel VBA code, guaranteed to help you build Excel VBA applications that ship with zero unhandled bugs.
Access a broad collection of Excel VBA programming best practices and tips to boost your Excel VBA code’s quality.
Since Microsoft dropped VB6 IDE support, ‘VBA is dead’ claims abound. Well, is it? No! Should you learn Excel VBA? Yes! Here, I explain why and more.