docs / articles / VBA Date Picker for Excel 2016 Userform (64-bit)

VBA Date Picker for Excel 2016 Userform (64-bit)

Eric Jul 09, 2026 2026-07-09 04:40:47

Are you looking to enhance your Excel 2016 experience with a 64-bit version? One of the powerful features you can leverage is the VBA date picker for userforms. This tool not only streamlines your workflow but also improves user interaction. Let's delve into how you can create and utilize a VBA date picker in Excel 2016 (64-bit).

Excel VBA UserForm with Navigation Buttons 🚀 | See it in Action! #shorts
Excel VBA UserForm with Navigation Buttons 🚀 | See it in Action! #shorts

Before we dive in, ensure you have a basic understanding of VBA (Visual Basic for Applications) and userforms in Excel. If you're new to these concepts, don't worry - we'll provide simple, step-by-step guidance.

How to Use Excel UserForm as Date Picker (with Easy Steps) - ExcelDemy
How to Use Excel UserForm as Date Picker (with Easy Steps) - ExcelDemy

Creating a Date Picker in Excel 2016 (64-bit)

Creating a date picker involves several steps. First, you need to insert a userform and add controls to it. Then, you'll write VBA code to make the date picker functional.

a screenshot of the vba user form
a screenshot of the vba user form

Here's a simple breakdown of the process:

Inserting a Userform

Cadastro Notas Fiscais
Cadastro Notas Fiscais

To insert a userform, right-click in the VBA editor and select "Insert" > "UserForm". This will open a blank userform where you can add controls.

Next, you'll add a label and a date picker control to the userform. Right-click in the userform and select "Insert" > "ActiveX Control". From the list, choose "MSForms.DatePicker" and click OK.

Adding VBA Code for the Date Picker

Use This Free Excel Date Picker to Enter Dates on Worksheet
Use This Free Excel Date Picker to Enter Dates on Worksheet

Now that you have the date picker control, you need to add VBA code to make it functional. Double-click the userform to open the code window. You'll see a "UserForm_Initialize" subroutine. Here's a simple VBA code snippet to make the date picker work:

```vba Private Sub UserForm_Initialize() With DatePicker1 .Value = Date .MinDate = DateSerial(1900, 1, 1) .MaxDate = DateSerial(2099, 12, 31) End With End Sub ```

This code sets the initial date to today's date, and sets the minimum and maximum dates the user can select.

Using the Date Picker in Your VBA Code

How to insert dates from a Popup Calendar (date picker) in Excel – user guide | XLTools
How to insert dates from a Popup Calendar (date picker) in Excel – user guide | XLTools

Now that you have a functional date picker, you can use it in your VBA code. Here's how you can display the selected date in a message box:

```vba Private Sub CommandButton1_Click() MsgBox "You selected: " & DatePicker1.Value End Sub ```

This code displays a message box with the selected date when you click a command button on the userform.

Excel VBA USERFORMS #25 Date Picker Calendar revealed! Loop through Userforms and Controls  Example
Excel VBA USERFORMS #25 Date Picker Calendar revealed! Loop through Userforms and Controls Example
NEW Date Picker in Excel for Web – Finally Here
NEW Date Picker in Excel for Web – Finally Here
VBA UserForm
VBA UserForm
Data Entry Form In Microsoft Excel | Excel VBA | Excel Tricks |
Data Entry Form In Microsoft Excel | Excel VBA | Excel Tricks |
Excel VBA UserForm with Navigation Buttons | Move Between Records Easily!
Excel VBA UserForm with Navigation Buttons | Move Between Records Easily!
How to create a date picker in Excel!🙏
How to create a date picker in Excel!🙏
Excel VBA Copy Data from Multiple Workbooks
Excel VBA Copy Data from Multiple Workbooks
Free VBA Programming Book
Free VBA Programming Book
financial excel
financial excel
How to create a drop down list calendar (date picker) in Excel?
How to create a drop down list calendar (date picker) in Excel?
Excel Date Picker — Sam Radakovitz
Excel Date Picker — Sam Radakovitz
Easy-To-Follow: Create a Fully Automated Data Entry Userform in Excel and VBA in 5 Easy Steps - TheDataLabs
Easy-To-Follow: Create a Fully Automated Data Entry Userform in Excel and VBA in 5 Easy Steps - TheDataLabs
Create Your First Button with Excel VBA – Automate with a Click
Create Your First Button with Excel VBA – Automate with a Click
an excel spreadsheet showing the number and type of items that are available for each item
an excel spreadsheet showing the number and type of items that are available for each item
Interactive Userform in Excel VBA
Interactive Userform in Excel VBA
How to transfer data from one workbook to another automatically using Excel VBA
How to transfer data from one workbook to another automatically using Excel VBA
an image of a table with the names and numbers for each class on it's screen
an image of a table with the names and numbers for each class on it's screen
an excel spreadsheet in the office window
an excel spreadsheet in the office window
Excel date picker add-in — Rad Sheets
Excel date picker add-in — Rad Sheets
Copy data from Single or Multiple Tables from Word to Excel using VBA
Copy data from Single or Multiple Tables from Word to Excel using VBA

Formatting the Date Output

By default, the date picker returns the date in a specific format (e.g., "mm/dd/yyyy"). If you want to format the date differently, you can use the "Format" function in VBA. Here's an example:

```vba Private Sub CommandButton1_Click() MsgBox "You selected: " & Format(DatePicker1.Value, "dddd, mmmm dd, yyyy") End Sub ```

This code formats the date as "Day, Month Day, Year" (e.g., "Wednesday, July 04, 2022").

And there you have it! You've created and utilized a VBA date picker in Excel 2016 (64-bit). This tool can significantly enhance your data entry process and improve user interaction. Happy coding!