Skip to content
- Excel VBA Dictionary For Each: Looping Through KeysIn Excel VBA, For Each loops through the keys of a Scripting.Dictionary when you write For Each key In dict. Declare the…VBA & macros
- Excel VBA Dictionary: How It Works and When to Use ItYes, Excel VBA can use a Dictionary on Windows, but VBA does not include a native Dictionary type. The commonly used option…VBA & macros
- Excel VBA Dictionary Count: What .Count ReturnsIn Excel VBA, get the number of entries in a Dictionary with its .Count property: use dict.Count. It returns the number of…VBA & macros
- Excel VBA Dictionary vs Collection: Which Should You Use?In Excel VBA, use a Scripting.Dictionary when you need unique keys, quick key-based lookups, or an Exists check; use a Collection when…VBA & macros
- Excel VBA Dictionary Add Array: Store and Retrieve ValuesYes. In Excel VBA, add an array to a Dictionary by passing it as the item in the Dictionary’s Add method, then…VBA & macros
- Excel VBA Dictionary Add: Syntax, Examples, and TipsIn Excel VBA, add an entry to a Dictionary with dict.Add key, item, after creating the Dictionary object. The key must be…VBA & macros
- Excel VBA UserForm Dialogs: How to Build and Show OneAn Excel VBA UserForm is a custom dialog you design to collect information, display choices, or guide a user through a task.…VBA & macros
- Excel VBA Derivative: Calculate a Function’s Rate of ChangeExcel VBA has no built-in function that symbolically derives any formula. If by “derive” you mean find a calculus derivative, you can…VBA & macros
- Excel VBA Date Variable: Types, Examples, and TipsIn Excel VBA, declare a date variable with Dim myDate As Date. A VBA Date variable can hold a calendar date, a…VBA & macros
- Excel VBA Date Value: Serials, Types, and ExamplesIn Excel VBA, a Date value is a date-and-time value that VBA stores as a number; use the Date data type for…VBA & macros
- Excel VBA Date Type: Storage, Range, and ExamplesIn Excel VBA, Date is a built-in data type for storing a calendar date, a time, or both. Declare a variable with…VBA & macros
- Excel VBA Date and Time Stamp: Add Fixed TimestampsTo add a fixed date-and-time stamp with Excel VBA, assign Now to a cell and apply a date-time number format. For an…VBA & macros
- Excel VBA Date Picker UserForm: Build One in ExcelTo make an Excel VBA date picker UserForm, create a modal UserForm with month-navigation buttons and a calendar grid, then write the…VBA & macros
- Excel VBA Date Object: Dates, Times, and Examples ExplainedIn Excel VBA, Date is a built-in data type for storing a calendar date and, optionally, a time; it is not an…VBA & macros
- Excel VBA Date Picker: Controls, Options, and FixesExcel for Microsoft 365 on Windows does not include a universal VBA date-picker control that you can simply add to any cell.…VBA & macros
- Excel VBA Date Now: Get Current Date and Time in MacrosIn Excel VBA, use Now to get the current date and time from the computer’s system clock. For the date alone, use…VBA & macros
- Excel VBA Date Math: Add, Subtract, and Compare DatesIn Excel VBA, subtract one Date value from another to get the elapsed time in days, and use DateAdd to add a…VBA & macros
- Excel VBA Date Today: How to Insert the Current DateIn Excel VBA, use the built-in Date function to get today’s date. To put it in a worksheet cell, assign Date to…VBA & macros
- Excel VBA Date and Time Functions: A Practical GuideExcel VBA’s main current-date and time functions are Date, Time, and Now; use DateSerial and TimeSerial to build date and time values,…VBA & macros
- Excel VBA Database Connections: Setup, Code, and SafetyExcel VBA can connect to a database on Windows by using a data provider, opening a connection, and sending SQL through ADO…VBA & macros
- Excel VBA Database: How It Works and When to Use OneAn Excel VBA database is a structured set of records kept in an Excel workbook, with Visual Basic for Applications (VBA) code…VBA & macros
- Excel VBA Data Validation Custom Formula: How to Use ItIn Excel VBA, create custom data validation with the Validation.Add method, setting Type:=xlValidateCustom and supplying a formula that evaluates to TRUE for…VBA & macros
- Excel VBA Data Validation: Create and Enforce RulesExcel VBA data validation lets a macro add, change, or remove the rules that control what users can enter in worksheet cells.…VBA & macros
- Excel VBA Refresh All: How to Update Every ConnectionTo refresh all supported external data connections and PivotTable reports in an Excel workbook with VBA, call ThisWorkbook.RefreshAll (or the workbook you…VBA & macros
- Excel VBA Data Entry Popup: Build a Simple UserFormYes. In Excel for Microsoft 365 on Windows, the usual way to create a VBA data-entry popup is to build a UserForm,…VBA & macros
- Excel VBA Data Entry Form Template: Build and Use OneAn Excel VBA data entry form template is a reusable UserForm that collects values, checks them, and appends a complete record to…VBA & macros
- Excel VBA Data Entry Forms: Setup, Code, and TipsAn Excel VBA data entry form is a custom window for collecting information and writing it to a worksheet, usually one record…VBA & macros
- Excel VBA Data Entry: Forms, Validation, and MacrosExcel VBA data entry uses Visual Basic for Applications to collect, check, and write information in a workbook. For a simple setup,…VBA & macros
- Excel VBA Create Named Range: Code, Scope, and TipsTo create a named range with Excel VBA, add a name to the workbook’s Names collection and set its RefersTo property to…VBA & macros
- Excel VBA: Create a Histogram Automatically with a MacroYes. You can create a histogram with Excel VBA by counting numeric values into bins and plotting those counts, or by using…VBA & macros