Functions

VBA Functions and Examples

VBA Convert Integer To String With Leading Zeros

VBA Convert Integer To String With Leading Zeros

VBA Convert Integer To String With Leading Zeros. when dealing with large data bases we commonly see numbers without leading zeros. But when we add in Excel sheet it doesn’t allow leading zeros. So we are converting to string by adding single quote. After that we can add zeros. It doesn’t show single quote in …

VBA Convert Integer To String With Leading Zeros Read More »

VBA Loop Through all XLS Files in a Folder

VBA Loop Through all xls Files in a folder

VBA Loop Through all xls Files in a Folder using built-in Dir() function. In this tutorial we loop through a folder or directory and list all available .xls files in a folder. Lets learn how to use Dir, Right and Len VBA functions in this tutorial. Table of Contents: Objective Example to find all .xls …

VBA Loop Through all XLS Files in a Folder Read More »

VBA Array Filter Function in Excel

VBA Array Filter function

VBA Array Filter Function in Excel. The filter function returns an array, which contains subset of string based on specified criteria. Table of Contents: Objective Syntax of VBA Filter Function in Excel Includes all filtered strings – case sensitive Extract all filtered strings – not a case sensitive Excludes or doesn’t contain filtered string – …

VBA Array Filter Function in Excel Read More »

VBA Loop Through all Files in subfolders

VBA Loop Through all Files in subfolders

VBA Loop Through all Files in subfolders using File System Object(FSO) and built-in Dir() function. VBA for each file in sub-folder macro helps us to loop through all files in sub-folders. In this tutorial we loop through sub-folders and list all available files in sub-folders using FSO early-binding and late-binding method and Dir() function. There …

VBA Loop Through all Files in subfolders Read More »

VBA Currency Data Type in Excel

VBA Currency Data Type in Excel

VBA Currency Data Type in Excel explained with syntax and examples. We use the Currency VBA data type to store numbers in integer format and these numbers scaled by 10,000. The default value is 0. The Currency VBA data type contains range of values between -922,337,203,685,477.5808 to 922,337,203,685,477.5807. The data type Currency can be used …

VBA Currency Data Type in Excel Read More »

VBA String Data Type in Excel

VBA String Data Type in Excel

VBA String Data Type in Excel explained with syntax and examples.String Data Type in Excel VBA explained with syntax and examples. Where string is nothing but sequence of characters. We use VBA data type string to store text. Text includes not only characters but also numbers, spaces and special characters. The string contains double-quotation-mark literal. …

VBA String Data Type in Excel Read More »

VBA Double Data Type in Excel

VBA Double Data Type in Excel

VBA Double Data Type in Excel explained with syntax and examples.Double Data Type in Excel VBA explained with syntax and examples. We use VBA data type Double to store numbers which represents Double-precision floating-point variables. The default value is 0 and store decimal values. The VBA data type Double contains range of values -1.79769313486231E308 to …

VBA Double Data Type in Excel Read More »

Single Data Type in Excel VBA

VBA Single Data Type in Excel

Single Data Type in Excel VBA explained with syntax and examples. We use VBA data type single to store numbers which represents single-precision floating-point variables. The default value is 0 and store decimal values. The VBA data type single contains range of values -3.402823E38 to -1.401298E-45 for negative values, and 1.401298E-45 to 3.402823E38 for positive …

Single Data Type in Excel VBA Read More »

Decimal Data Type in Excel VBA

VBA Decimal Data Type in Excel

Decimal Data Type in Excel VBA explained with syntax and examples.Decimal VBA Data Type in Excel VBA explained with syntax and examples. We use the Decimal VBA data type to store integer numbers scaled by a variable power of 10. The default value is 0. The Decimal VBA data type contains range of values +/-79,228,162,514,264,337,593,543,950,335 …

Decimal Data Type in Excel VBA Read More »

VBA Integer Data Type in Excel

VBA Integer Data Type in Excel

VBA Integer Data Type in Excel explained with syntax and examples. We use the integer VBA data type to store only integer whole numbers. The default value is 0. The integer VBA data type contains range of values between -32,768 to 32,767. Integers cannot have decimal places. The integer number can be positive number, negative …

VBA Integer Data Type in Excel Read More »

VBA Multi-Dimensional Array in Excel

Multi - Dimensional Array

VBA Multi-Dimensional Array in Excel.The Multi-Dimensional Arrays uses more than two indexes(Subscripts). We can have up-to 60 dimensions in an array. Table of Contents: Overview Syntax of VBA Multi-Dimensional Array in Excel Example for VBA N-Dimensional Array in Excel Instructions to Run VBA Macro Code Other Useful Resources Syntax of the Multi-Dimensional Array Function Here …

VBA Multi-Dimensional Array in Excel Read More »