Macros & Excel VBA

Excel VBA: InputBox with Password Mask (2 Examples)

How to Launch a VBA Editor in Excel To launch the VBA Editor, click on the Developer Tab from Excel Ribbon and select the Visual Basic option. If ...

How to Get an Excel VBA Input Box with a Drop-Down List: 2 Methods

The image below shows an input box with a drop-down list of names. How to Launch VBA Macro Editor in Excel To run a VBA code, we first ...

Excel VBA InputBox with Multiple Lines (3 Examples)

Here is an image overview of using a constant (vbNewLine or vbCr) of the InputBox function that allows multiple lines in the InputBox. This InputBox, ...

How to Delete Row with VBA and Shift Up Cells in Excel (11 Examples)

When working with large Excel worksheets, cleaning unnecessary data is essential. Deleting specific rows and shifting the remaining ones up to close ...

How to Handle VBA InputBox Cancel Button in Excel: 2 Methods

1. Use StrPtr Function & If ElseIf Statement to Show If User Clicked Cancel Button in VBA Inputbox Insert the following code into your ...

VBA MsgBox Format in Excel – 5 Examples

What Is an Excel VBA MsgBox? The Excel VBA MsgBox is a built-in function in Microsoft Excel's Visual Basic for Applications (VBA) programming ...

Excel VBA: InputBox Date Format: 6 Methods

Method 1 - Using VBA IsDate and CDate Functions for Date Format Validation Show how to take date-type data in any format with InputBox, convert ...

Excel VBA to Cancel Selection: 5 Suitable Methods

Method 1 - Using VBA Application.CutCopyMode Property to Cancel Selection While Copying When you copy the values from some range in Excel with ...

Excel VBA to Sort Multidimensional Array: 2 Methods

Method 1 - Creating Multidimensional Array and Then Sorting Create a random, unsorted dataset with the data we imputed in the array. We took 5 ...

Pop Up Excel VBA MsgBox When Cell Meets Criteria

How to Launch the VBA Editor in Excel You need the Developer tab to display on your ribbon. If you don’t have it, check how to enable the ...

How to Use VBA Methods in Excel to Wait Milliseconds between Code Execution (3 Ways)

  How to Launch VBA Editor in Excel You can easily launch the VBA editor by pressing Alt+F11 or using the Visual Basic command from the ...

Excel VBA to Display Message Box for 5 Seconds

There are various ways to display messages for 5 seconds using VBA in Excel. In the video below, we use VBA code to display a MsgBox for five seconds ...

Excel VBA to Delete and Shift Left Any Cell or Column

What Do ‘Delete and Shift Left’ Commands Mean in Excel VBA? The Delete command in Excel VBA means to delete an entire column, row, or cell. The ...

Excel VBA For Loop with Array (5 Examples)

  How to Open the VBA Macro Editor in Excel Steps: Go to the Developer tab and select Visual Basic. Alternatively, press Alt + F11. ...

How to Use a VBA Code in Excel to Click OK on MsgBox

In the following dataset, you can see that the Printer and Battery have no Price. We want to include a MsgBox to show the product names without a ...

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo