VB Language
User-Defined Types
A user-defined type (UDT) allows the programmer to define custom data elements that are specifically suited for the data at hand. A UDT can contain two or more elements, each element being a variable or array. UDTs are defined with the Type...End Type statement.
- Read more about User-Defined Types
- Log in or register to post comments
Variant
Variant is VBA’s most flexible data type as well as the default type. The Variant data type can hold almost any type of data, the exceptions being fixedlength strings and user-defined types. The downside is that Variant data requires more memory to store, and more computer power to process, than other data types.
- Read more about Variant
- Log in or register to post comments
VarType()
Need to add explanation
- Read more about VarType()
- Log in or register to post comments
Weekday()
Returns a value 1–7 representing the day of the week. The optional firstdayofweek argument specifies the first day of the week; the default is Sunday. The firstdayofweek option in IDEAScript does not seem to work.
- Read more about Weekday()
- Log in or register to post comments
With...End With
The With...End With construct cannot be called a control statement because it does not modify code execution. It does, however, provide a handy shorthand that simplifies writing code in certain situations.
- Read more about With...End With
- Log in or register to post comments
Year()
Year(date) Returns the year
- Read more about Year()
- Log in or register to post comments