Skip to content
- Excel VBA Jagged Arrays: How to Create and Use ThemExcel VBA does not have a dedicated jagged-array type, but you can make a jagged array by storing separate arrays inside the…VBA & macros
- Excel VBA Intersect Function: How It WorksIn Excel VBA, Application.Intersect returns the cells shared by two or more ranges on the same worksheet. If the ranges do not…VBA & macros
- Excel VBA Int Function: What It Does and How to Use ItIn Excel VBA, Int(number) returns the greatest whole-number value less than or equal to the number: for example, Int(7.9) is 7, while…VBA & macros
- Excel VBA Insert Row: Examples and Safe MethodsTo insert a worksheet row with Excel VBA, use Rows(5).Insert Shift:=xlDown; this inserts a blank row above row 5. Qualify Rows with…VBA & macros
- Excel VBA InputBox Validation: A Practical GuideTo validate an Excel VBA input, use Application.InputBox to collect a value, check it against your rules in a loop, and repeat…VBA & macros
- Excel VBA InputBox Type: Values, Examples, and UseIn Excel VBA, the Type argument belongs to Application.InputBox and controls what kind of response the dialog accepts: text, a number, a…VBA & macros
- Excel VBA InputBox Syntax: Arguments and ExamplesIn Excel VBA, the basic syntax is InputBox(prompt[, title] [, default] [, xpos] [, ypos] [, helpfile, context]). It displays a dialog…VBA & macros
- Excel VBA InputBox String: Return Values and Type HandlingIn Excel VBA, the built-in InputBox function returns the user’s response as a String. One important catch is that clicking Cancel also…VBA & macros
- Excel VBA InputBox Range Selection: How to Use Type 8To let someone select cells in Excel VBA, use Application.InputBox with Type:=8; it returns the selection as a Range object. Assign that…VBA & macros
- Excel VBA InputBox Password: Masking and Secure OptionsExcel’s built-in VBA InputBox cannot hide a password as the user types; it displays the entered characters. To show dots or asterisks,…VBA & macros
- Excel VBA InputBox Multiple Inputs: Practical MethodsExcel VBA’s standard InputBox collects one response at a time; it does not provide several separate fields in one dialog. To collect…VBA & macros
- Excel VBA InputBox and MsgBox: How They Work TogetherIn Excel VBA, InputBox asks a user for a value, while MsgBox displays information or asks the user to choose an action.…VBA & macros
- Excel VBA InputBox and IME: How Text Entry Works in WindowsExcel VBA’s built-in InputBox accepts text entered with a Windows IME (Input Method Editor), such as Japanese, Chinese, or Korean text. It…VBA & macros
- Excel VBA InputBox Integer: Get and Validate Whole NumbersYes—VBA can ask for an integer with an input box, but neither common input-box option automatically guarantees a whole number. For reliable…VBA & macros
- Excel VBA InputBox Function: Syntax and ExamplesThe Excel VBA InputBox function displays a dialog that asks a user for a response and returns that response as a string.…VBA & macros
- Excel VBA InputBox Choices: Menus, Buttons, and FormsExcel VBA’s standard InputBox asks users to type a response; it does not create a dropdown or a set of selectable choices.…VBA & macros
- Excel VBA InputBox for Dates: How to Validate InputTo ask for a date in Excel VBA, collect the entry as text, validate it, and convert it to a VBA Date…VBA & macros
- Excel VBA InputBox Cancel: Exit a Sub SafelyYes. To stop the current Excel VBA procedure when a user cancels an input box, test the returned value and use Exit…VBA & macros
- Excel VBA InputBox Cancel: How to Detect ItIn Excel VBA, the built-in InputBox function returns an empty string when the user clicks Cancel, just as it does when the…VBA & macros
- Excel VBA Input Form: How to Build and Use a UserFormAn Excel VBA input form is a custom window, usually built as a VBA UserForm, that lets people enter information without typing…VBA & macros
- Excel VBA: Initialize Arrays, Set Values, and Resize ThemTo initialize an array in Excel VBA, declare it and assign values: use Dim items As Variant: items = Array("red", "green", "blue")…VBA & macros
- Excel VBA: How to Include Double Quotes in a StringIn Excel VBA, write two double-quote characters inside a string literal wherever you want one actual double quote. For example, message =…VBA & macros
- Excel VBA: How to Include Double Quotes in StringsIn Excel VBA, put two double-quote characters inside a string literal wherever you want the resulting text to contain one double quote.…VBA & macros
- Excel VBA Import From Another Workbook: A Safe GuideTo import a worksheet with VBA, open the source workbook, copy the required worksheet into the workbook containing the macro, and close…VBA & macros
- Excel VBA: Import CSV Data the Right WayTo import a CSV file with Excel VBA, use Workbooks.OpenText to parse it, then copy its values into a worksheet in your…VBA & macros
- Excel VBA: Import Data From Another Workbook Step by StepTo import data from another workbook with Excel VBA, open the source file, identify its worksheet and range, then assign that range…VBA & macros
- Excel VBA: Import a CSV Into a WorksheetTo import a CSV file into an Excel worksheet with VBA, use Application.GetOpenFilename to choose the file, open it with Workbooks.OpenText, and…VBA & macros
- Excel VBA If Then GoTo Next Loop? The Safe PatternYes. In Excel VBA, use an If...Then GoTo statement to jump to a label placed immediately before the loop’s Next or Loop…VBA & macros
- Excel VBA Import CSV: Methods, Code, and Common IssuesTo import a CSV into an Excel worksheet with VBA, open the file with Workbooks.OpenText, then copy its parsed cells into the…VBA & macros
- Excel VBA: Check If a String Is NumericIn Excel VBA, use the built-in IsNumeric function to check whether a string can be interpreted as a number: If IsNumeric(value) Then.…VBA & macros