How to pop up a calendar when clicking a specific cell in Excel?
If you frequently enter or update dates in the same range, you can use a pop-up calendar instead of typing each date manually. This tutorial shows how to create a calendar for a specified range with VBA and how to use the Date Picker in Kutools for Excel without writing code.
Compare the two calendar methods
| Method | Best for | Key difference |
|---|---|---|
| VBA with MonthView Control | Showing a calendar automatically when a cell in a specified range is selected | Requires a UserForm, two VBA procedures, and 32-bit Excel. |
| Kutools for Excel Date Picker | Inserting dates into blank cells or replacing existing content | No code required; supports all-cell, date-cell, and smart modes, with optional automatic popup. |
Pop up a calendar when clicking a specific cell with VBA
This method creates a calendar in a UserForm and displays it when you select a cell in the specified range.
📝 Note:
This method uses the Microsoft MonthView Control and works only with 32-bit Excel.
Step 1: Create a UserForm with a calendar
First, create a UserForm containing the calendar that will appear when you select a cell.
- Press Alt + F11 to open the Microsoft Visual Basic for Applications window.
- Click Insert > UserForm.

- When the UserForm and Toolbox windows appear, right-click a control in the Toolbox, and then select Additional Controls.

- In the Additional Controls dialog box, select Microsoft MonthView Control, and then click OK.

- Click the MonthView button that has been added to the Toolbox, and then click inside UserForm1 to add the calendar.

You can resize the UserForm by dragging its border to fit the calendar.
- Double-click the calendar in UserForm1. In the Code window, replace the existing code with the following VBA procedure.
VBA code: Create a UserForm with a calendar
Private Sub MonthView1_DateClick(ByVal DateClicked As Date) 'Updated by Extendoffice On Error Resume Next Dim xRg As Object For Each xRg In Selection.Cells xRg.Value = DateClicked Next xRg Unload Me End SubThis code inserts the date selected in the calendar into the currently selected cell.

Step 2: Activate the calendar when clicking a cell
Next, specify the cells that should display the calendar when selected.
- In the Project pane, double-click the sheet containing the target cells. Paste the following code into the sheet's Code window.
VBA code: Display the calendar when a cell is selected
Private Sub Worksheet_SelectionChange(ByVal Target As Range) 'Updated by Extendoffice If Target.Count = 1 Then If Not Intersect(Target, Range("A2:A10")) Is Nothing Then UserForm1.Show End If End SubIn the code, A2:A10 is the range that activates the calendar. Change this reference to the range you want to use.

- Press Alt + Q to close the Microsoft Visual Basic for Applications window.
When you select a cell in the specified range, the calendar appears. Select a date in the calendar to insert it into the active cell.

Use Kutools for Excel to display a Date Picker
Kutools for Excel's Date Picker can insert dates into blank cells as well as replace existing content, without VBA.
- Click Kutools > Date Picker. If you do not see it here, find it under Kutools > View.

- Choose a mode from the Date Picker menu:
- Enable for All Cells: Includes blank cells; selected by default.
- Enable for Date Cells Only: Cells containing dates or formatted as dates.
- Smart Enable: Detects cells likely intended for dates.

- Select a suitable cell and click its calendar icon. Check Auto popup to open the calendar automatically on subsequent eligible selections.

- Choose a date. Click Insert Date or move to another cell to confirm.
📝 Notes:
- Inserting a date replaces existing cell content.
- Cancel and Close cancels the input or change.
- Alt + Down Arrow also opens the calendar.
Kutools for Excel - Supercharge Excel with over 300 essential tools, making your work faster and easier, and take advantage of AI features for smarter data processing and productivity. Get It Now
For another way to insert dates—especially when you want to choose a specific format before insertion—use the Insert Date feature in Kutools for Excel. It lets you select a formatted date from a calendar and insert it into the selected cell with a double-click.

Kutools for Excel - Supercharge Excel with over 300 essential tools, making your work faster and easier, and take advantage of AI features for smarter data processing and productivity. Get It Now
Frequently Asked Questions
Why can't I find Microsoft MonthView Control in Additional Controls?
The VBA method in this article relies on a 32-bit ActiveX control and is not available in 64-bit Excel. If the control is missing, use a compatible calendar control or the Kutools Date Picker instead.
How do I change the cells that display the VBA calendar?
Replace A2:A10 in Range("A2:A10") with your target range. Make sure the SelectionChange code is stored in the correct worksheet module.
Related articles:
- How to trigger or run a macro by clicking a specific cell in Excel?
- How to change cell color when a cell is clicked or selected in Excel?
- How to pop up a message box when clicking a certain cell in Excel?
- How to disable a button after clicking it once in Excel?
- How to disable right-click on a sheet tab in Excel?
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
All Kutools add-ins. One installer
Kutools for Office suite bundles add-ins for Excel, Word, Outlook & PowerPoint plus Office Tab Pro, which is ideal for teams working across Office apps.
- All-in-one suite — Excel, Word, Outlook & PowerPoint add-ins + Office Tab Pro
- One installer, one license — set up in minutes (MSI-ready)
- Works better together — streamlined productivity across Office apps
- 30-day full-featured trial — no registration, no credit card
- Best value — save vs buying individual add-in






