Computer >> Computer tutorials >  >> Software >> Office

Excel Date Picker for Entire Column

Date Picker is one of the interesting tools of Microsoft Excel. It relieves us from the monotonous work of inserting data for each cell manually. Using the Date Picker tool, we get the facility to insert a date from a pop-up calendar. In this tutorial, we will discuss how to insert the Excel Date Picker and apply this for an entire column.

Excel Date Picker for Entire Column

What is Excel Date Picker?

Excel Date Picker is an interesting feature of Microsoft Excel. It offers us a calendar pop-up. So that, we can easily pick a date. This feature is available with 32-bit versions of Excel 365, Excel 2019, Excel 2016, Excel 2013, and Excel 2010. But it will not work on any 64-bit version of Excel.

How to Insert Excel Date Picker?

We will explain how to insert Date Picker in Excel step by step. Before inserting Excel Date Picker, we need to add the Developer feature in the Main tabs.

1. Add Developer Tab for Excel Date Picker

Before inserting Excel Date Picker, we need to add the Developer feature in the Main tabs.

Step 1:

  • First, press the File tab.

Excel Date Picker for Entire Column

Step 2:

  • Select Options from the list.

Excel Date Picker for Entire Column

Step 3:

  • Choose Customize Ribbon from the left side box.
  • Now, select Main Tabs from the right side box.
  • Put a tick mark on the Developer box.
  • Finally, press OK.

Excel Date Picker for Entire Column

Notice the Excel file now.

Excel Date Picker for Entire Column

The Developer mood is showing in the main tab presently.

Read more: How to Calculate Due Date with Formula in Excel

2. Insert Excel Date Picker

Now, we will insert the Date Picker in Excel. Apply the following steps carefully.

Step 1:

  • Click on the Developer tab.
  • Select Insert from the Controls group.
  • Choose More Controls from the ActiveX Controls option.

Excel Date Picker for Entire Column

Step 2:

  • Select Microsoft Date and Time Picker Control 6.0 (SP6) from the dialog box of More Controls.
  • Then press OK.

Excel Date Picker for Entire Column

Notice the image below.

Excel Date Picker for Entire Column

The Date Picker is marked. It extracts the date of the present day.

Step 3:

  • Now, click on the Date Picker.

Excel Date Picker for Entire Column

An EMBEDDED formula is shown on the formula bar. We can not change this formula.

Read more: How to Insert Current Date in Excel

Similar Readings

  • Excel VBA to Find Week Number (6 Quick Examples)
  • VBA Date to String Conversion in Excel (6 Methods)
  • Now and Format Functions in Excel VBA (4 Examples)
  • How to Use VBA DateSerial Function in Excel (5 Easy Applications)

3. Control the Date Picker

Here, we will show how to control and customize a Date Picker.

Step 1:

  • Click on the Date Picker using the right button of the mouse. Keep pressing the button. As we displace the cursor, the date picker will move accordingly.

Excel Date Picker for Entire Column

Step 2:

  • We can resize a Date Picker. Place the cursor on the edge of the Date Picker. Keep pressing the mouse. Now, move the cursor and the size will change accordingly.

Excel Date Picker for Entire Column

Step 3:

  • We have the Property feature with the Date Picker. Press the right button of the mouse.
  • Choose Properties from the list.

Excel Date Picker for Entire Column

The Properties window offers the facility to modify the length, width, font type, etc.

Excel Date Picker for Entire Column

Read more: How to Use Excel Date Shortcut

4. Link Date Picker with Desired Cell

To properly implement a Date Picker, we need to link that with a cell. Here, we show how to link Date Picker with expected cells.

Step 1:

  • Take the cursor on the Date Picker.
  • Press the right button of the mouse.
  • Choose Properties from the list.

Excel Date Picker for Entire Column

Step 2:

  • From the Properties window, go to the LinkedCell row.
  • We put Cell C5 here.

Excel Date Picker for Entire Column

Step 3:

  • Now, press the Enter button.

Excel Date Picker for Entire Column

We need to turn the Checkbox property from False into True.

Step 4:

  • Again, go to the Properties window.
  • Choose True at CheckBox row.
  • Press Enter now.

Excel Date Picker for Entire Column

Step 5:

  • Now, put the cursor on the Date Picker.
  • Press the right button of the mouse. Choose DTPicker Object > Properties option.

Excel Date Picker for Entire Column

Step 6:

  • Choose the Format, tick on the CheckBox on the DTPicker Properties window.
  • Finally, press Apply, then click on OK.

Excel Date Picker for Entire Column

Now, look at the Excel file.

Excel Date Picker for Entire Column

The date of the present day is shown on Cell C5.

Step 7:

  • Go to the View Code option of the Date Picker by pressing the right button of the mouse.

Excel Date Picker for Entire Column

A VBA code is showing now.

Excel Date Picker for Entire Column

This Date Picker is running based on this VBA Macro.

Insert a Date Picker for an Entire Column with VBA Macros

We can apply Date Picker for different situations according to our needs. Here, we will explain how to apply this Date Picker for an entire column in Excel.

Step 1:

  • We will input only the dates, so delete the time value.
  • Now, go to the View Code option.

Excel Date Picker for Entire Column

Step 2:

  • Write the code below on the command module.
Private Sub Worksheet_SelectionChange(ByVal Dest As Range)
With Sheet1.DTPicker1
.Height = 20
.Width = 20
If Not Intersect(Dest, Range("C:C")) Is Nothing Then
.Visible = True
.Top = Dest.Top
.Left = Dest.Offset(0, 1).Left
.LinkedCell = Dest.Address
Else
.Visible = False
End If
End With
End Sub

Excel Date Picker for Entire Column

Now, save the VBA code. No need to run the code.

Step 3:

  • Go to the main Excel file.
  • From the Developer tab, disable the Design Mode.

Excel Date Picker for Entire Column

Now, click any cell of Column C.

Excel Date Picker for Entire Column

A box is shown at each cell of Column C.

Step 4:

  • When we click on that box, a pop-up calendar is shown. We pick our desired dates from that calendar.

Excel Date Picker for Entire Column

  • Click on the month name if we need to change the month of the calendar.

Excel Date Picker for Entire Column

  • We see an Up-down sign in the calendar. That is used to change the years of the calendar.

Excel Date Picker for Entire Column

Now, fill all the desired date values in the file.

Excel Date Picker for Entire Column

But we can set dates at any cell of Column C here.

Read more: How to Use VBA DateSerial Function in Excel

💬 Things to Remember

  • You will not find Date Picker in 64-bit versions of Excel.
  • You can not insert any date in Design Mode.
  • Must save the file as Micro-Enabled Workbook (.xlsm).
  • You can change the dates using the arrow buttons of the calendar.

Conclusion

In this article, we described how to insert a date picker in Excel. We also added an Excel date picker for an entire column. I hope this will satisfy your needs. Please have a look at our website Exceldemy.com and give your suggestions in the comment box.

Further Readings

  • Use Year Function in Excel VBA (5 Suitable Examples)
  • How to Use Excel VBA MONTH Function (7 Suitable Examples)
  • Use EoMonth in Excel VBA (5 Examples)
  • How to Use the VBA DatePart Function in Excel (7 Examples)