Arrays in VBA – Part 2: Array Assignment Rules
Arrays are powerful tools in VBA. However, the many types of arrays and the fact that in VBA arrays are value types means that assigning array variables is tricky business. In this post I’ll explain...
View ArticleVBA Internals: What’s in a variable
Language designers and runtime authors are always telling us to ignore implementation details. For the most part, including for VBA, that’s good advice. But sometimes you need or want know how things...
View ArticleVBA Internals: Performance of Fixed vs. Dynamic Arrays
Arrays in VBA can have their dimensions either fixed at compile time or modifiable at runtime. Fixed-length arrays are declared by specifying the bounds in the declaration, while dynamic arrays must be...
View ArticleVBA Internals: Getting Pointers
Generally speaking you don’t use pointers in VBA. There is no language-level syntax to explicitly obtain or dereference a pointer as in C or C++ (such as int* somePtr = &someInt). Within VBA there...
View ArticleVBA Internals: Scalar Variables and Pointers in Depth
In VBA Internals: What’s in a variable, I introduced the types of variables in VBA as categorized by how they are implemented. In VBA Internals: Getting Pointers, I described the functions used to...
View ArticleVBA Internals: String Variables and Pointers in Depth
This is the next installment of a series of deep-dives into the structure and implementation of variables in Visual Basic for Applications. For the previous posts, see the following: What’s in a...
View ArticleVBA Internals: Array Variables and Pointers in Depth
This is the next installment of a series of deep-dives into the structure and implementation of variables in Visual Basic for Applications. For the previous posts, see the following: What’s in a...
View ArticleVBA Internals: Variant Variables and Pointers in Depth
Pointers and memory for Variant variables In the Component Object Model (COM) Automation framework, the VARIANT structure provides a wrapper for passing around any type of data, and a suite of...
View ArticleVBA Internals: Decimal Variables and Pointers In Depth
Decimal Variants The Decimal type is special. It’s a structure that takes 14 bytes. Essentially it’s a 96-bit (12-byte) signed integer, plus a 1-byte scaling factor and a 1-byte sign. The scaling works...
View ArticleCollections of Collections in VBA
In many situations using collections of one kind or another is very useful. Once in a while, you even want to go another step and use collections of collections. Just as there are several types of...
View ArticleArrays in VBA – Part 2: Array Assignment Rules
Arrays are powerful tools in VBA. However, the many types of arrays and the fact that in VBA arrays are value types means that assigning array variables is tricky business. In this post I’ll explain...
View ArticleVBA Internals: What’s in a variable
Language designers and runtime authors are always telling us to ignore implementation details. For the most part, including for VBA, that’s good advice. But sometimes you need or want know how things...
View ArticleVBA Internals: Performance of Fixed vs. Dynamic Arrays
Arrays in VBA can have their dimensions either fixed at compile time or modifiable at runtime. Fixed-length arrays are declared by specifying the bounds in the declaration, while dynamic arrays must be...
View ArticleVBA Internals: Getting Pointers
Generally speaking you don’t use pointers in VBA. There is no language-level syntax to explicitly obtain or dereference a pointer as in C or C++ (such as int* somePtr = &someInt). Within VBA there...
View ArticleVBA Internals: Scalar Variables and Pointers in Depth
In VBA Internals: What’s in a variable, I introduced the types of variables in VBA as categorized by how they are implemented. In VBA Internals: Getting Pointers, I described the functions used to...
View ArticleVBA Internals: String Variables and Pointers in Depth
This is the next installment of a series of deep-dives into the structure and implementation of variables in Visual Basic for Applications. For the previous posts, see the following: What’s in a...
View ArticleVBA Internals: Array Variables and Pointers in Depth
This is the next installment of a series of deep-dives into the structure and implementation of variables in Visual Basic for Applications. For the previous posts, see the following: What’s in a...
View ArticleVBA Internals: Variant Variables and Pointers in Depth
Pointers and memory for Variant variables In the Component Object Model (COM) Automation framework, the VARIANT structure provides a wrapper for passing around any type of data, and a suite of...
View ArticleVBA Internals: Decimal Variables and Pointers In Depth
Decimal Variants The Decimal type is special. It’s a structure that takes 14 bytes. Essentially it’s a 96-bit (12-byte) signed integer, plus a 1-byte scaling factor and a 1-byte sign. The scaling works...
View ArticleCollections of Collections in VBA
In many situations using collections of one kind or another is very useful. Once in a while, you even want to go another step and use collections of collections. Just as there are several types of...
View Article
More Pages to Explore .....