docs / articles / How to Add a Calendar with Date Picker in Excel

How to Add a Calendar with Date Picker in Excel

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

Streamlining your workflow in Excel often involves automating repetitive tasks. One such task is inserting dates into your calendar. While Excel offers a date picker control, it's not built-in and requires a bit of setup. Let's guide you through the process of inserting a calendar in Excel using a date picker control.

How to create a drop down list calendar (date picker) in Excel?
How to create a drop down list calendar (date picker) in Excel?

Before we dive in, ensure you have Excel installed and are comfortable with basic functions. We'll be using VBA (Visual Basic for Applications) to create the date picker control. Don't worry if you're new to VBA; we'll keep it simple and straightforward.

How to Insert a Calendar in Excel (the Simplest Way)
How to Insert a Calendar in Excel (the Simplest Way)

Setting Up Your Environment

Before you start, make sure your Excel is set up to enable the Developer tab and show hidden files.

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

To enable the Developer tab:

  1. Right-click on the Ribbon and select Customize the Ribbon.
  2. Check the box next to Developer.
  3. Click OK.
302K views · 10K reactions | How to insert a calendar and date picker in Excel‼️ 🗂️ Don’t forget to save this post! 🧑‍🏫 Get your FREE Excel templates with the link in our bio! 🤯 Follow us on TikTok, YouTube, Twit | CheatSheets
302K views · 10K reactions | How to insert a calendar and date picker in Excel‼️ 🗂️ Don’t forget to save this post! 🧑‍🏫 Get your FREE Excel templates with the link in our bio! 🤯 Follow us on TikTok, YouTube, Twit | CheatSheets

Enabling Hidden Files

To show hidden files:

  1. Click the File tab, then Options.
  2. In the Excel Options dialog box, click the Save tab.
  3. Under Save workbooks, check the box next to Show all file extensions.
  4. Click OK.
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

Creating the Date Picker Control

Now that your environment is set up, let's create the date picker control.

To create the date picker control:

How to Add Date Picker Calendar Drop Down in MS Excel (Easy)
How to Add Date Picker Calendar Drop Down in MS Excel (Easy)
  1. Press Alt + F11 to open the Visual Basic for Applications (VBA) window.
  2. Click Insert, then Module to insert a new module.
  3. Copy and paste the following code into the module:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If Target.Address = "$A$1" Then
        Application.InputBox "Enter Date (mm/dd/yyyy)", Type:=2
    End If
End Sub
  1. Press Alt + Q to return to Excel.
  2. In cell A1, enter the following formula: =TODAY()
  3. Press Enter. Now, whenever you click on cell A1, a date picker will appear, allowing you to select a date.

How to Make a Calendar in Excel [Complete Guide + Free Templates] - GeeksforGeeks
How to Make a Calendar in Excel [Complete Guide + Free Templates] - GeeksforGeeks
Calculate days from/before date in Excel
Calculate days from/before date in Excel
Excel Date Picker - How to Insert? (Step by Step Examples)
Excel Date Picker - How to Insert? (Step by Step Examples)
Calender in Excel ‼️ Amazing Excel trick using data validation and conditional formatting ✅ #Excel
Calender in Excel ‼️ Amazing Excel trick using data validation and conditional formatting ✅ #Excel
Free Excel Calendar Template
Free Excel Calendar Template
an image of a calendar in microsoft office 365 with the date and time tab open
an image of a calendar in microsoft office 365 with the date and time tab open
How to insert calendar in Excel (Date Picker & printable calendar template)
How to insert calendar in Excel (Date Picker & printable calendar template)
Excel Autofill - how to quickly enter Months, Days, Dates and Numbers without typing
Excel Autofill - how to quickly enter Months, Days, Dates and Numbers without typing
Create a Calendar in Excel - Tutorial
Create a Calendar in Excel - Tutorial
NEW Date Picker in Excel for Web – Finally Here
NEW Date Picker in Excel for Web – Finally Here
Calendar in Excel: Make Dynamic, Interactive Calendar in Excel with Formula + Conditional Formatting
Calendar in Excel: Make Dynamic, Interactive Calendar in Excel with Formula + Conditional Formatting
Create a Calendar in Microsoft Excel or Insert a Reference Calendar
Create a Calendar in Microsoft Excel or Insert a Reference Calendar
Use This Free Excel Date Picker to Enter Dates on Worksheet
Use This Free Excel Date Picker to Enter Dates on Worksheet
How to Make an Interactive Calendar in Excel? (2026 Template)
How to Make an Interactive Calendar in Excel? (2026 Template)
Never waste time typing out dates again with this calendar tool. 🗓
Never waste time typing out dates again with this calendar tool. 🗓
Create a Calendar in Microsoft Excel or Insert a Reference Calendar
Create a Calendar in Microsoft Excel or Insert a Reference Calendar
Perfect Inserting A Dropdown Calendar In Excel
Perfect Inserting A Dropdown Calendar In Excel
How to make a dynamic calendar in excel
How to make a dynamic calendar in excel
How to Make & Format a Calendar in Excel - Tutorials
How to Make & Format a Calendar in Excel - Tutorials
How to Make a Calendar Template in Excel
How to Make a Calendar Template in Excel

Customizing the Date Picker Control

You can customize the date picker control by modifying the code. For instance, you can change the title of the date picker box or its default date.

To change the title:

  1. Go back to the VBA window (Alt + F11).
  2. Find the line of code that says "Enter Date (mm/dd/yyyy)" and change it to your desired title.
  3. Press Alt + Q to return to Excel.

Remember, the date picker control will only appear when you click on cell A1. If you want it to appear in other cells, you'll need to modify the code accordingly.

Using the Date Picker Control

Now that you've created and customized your date picker control, it's time to use it.

To use the date picker control:

  1. Click on cell A1. The date picker box will appear.
  2. Select the desired date and click OK. The date will be inserted into cell A1.
  3. To insert the date into another cell, simply copy and paste it.

Formatting the Date

By default, the date picker control inserts dates in the mm/dd/yyyy format. If you prefer a different format, you can change it using the Number section of the Home tab in Excel.

To change the date format:

  1. Select the cell containing the date.
  2. Click the Number group on the Home tab.
  3. Click on the dialog box launcher (small square in the bottom-right corner) to open the Format Cells dialog box.
  4. In the Number tab, select the desired date format.
  5. Click OK.

And there you have it! You've successfully inserted a calendar in Excel using a date picker control. This simple tool can save you time and reduce errors in your daily tasks. Happy automating!