Forum Discussion
How to add pop-up calendar in spreadsheet cell
Thank you for the quick reply with detailed instructions.
I have enabled developer tab but I don't see insert/ control group or any date picker option under the developer tab.
I am using Office 365 on MacBook Pro.
Please help. Thank you.
In Excel, you can add a pop-up calendar to a cell using the "Date Picker" control. But so far I know, Excel for Mac does not have a built-in date picker like Excel for Windows. However, you can use a workaround by creating a user form with a date picker control.
Here are the general steps:
- Open Excel:
- Launch Excel on your MacBook Pro.
- Enable Developer Tab:
- If you don't have the Developer tab enabled, go to "Excel" > "Preferences" > "Ribbon & Toolbar" and check the "Developer" option.
- Open the Visual Basic for Applications (VBA) Editor:
- Click on the "Developer" tab in the ribbon.
- Click on "Visual Basic" to open the VBA Editor.
- Insert UserForm:
- In the VBA Editor, right-click on any item in the project explorer on the left.
- Choose "Insert" > "UserForm" to add a new UserForm.
- Add a Date Picker Control:
- In the Toolbox (if it's not open, press Ctrl + T to open it), find the "Date Picker" control.
- Click and drag the Date Picker control onto the UserForm.
- Code the Calendar Behavior:
- Double-click on the UserForm to open the code window.
- Use VBA code to show the UserForm when the cell is clicked.
Here's an example:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Target.Address = "$A$1" Then ' Change this to the cell address where you want the calendar
UserForm1.Show
Cancel = True
End If
End Sub
- This example assumes the cell A1 is the target cell for the calendar. Adjust the code based on your specific cell.
- Close the VBA Editor:
- Close the VBA Editor and return to Excel.
- Test the Calendar:
- Double-click the designated cell (e.g., A1), and the UserForm with the date picker should appear.
Keep in mind that Excel for Mac might have received updates since my last knowledge, and there might be new features or changes. Of course you can still create a simple date picker using Data Validation.
Additional Link/info: Date Picker Calander Pop up in a Cell in 365 for Mac?
NOTE: My knowledge of Office 365 on MacBook Pro is limited, I entered your question in various AI. The text and the steps are the result of various AI's put together. Maybe it will help you further in your project, if not please just ignore it.
- PB-04May 14, 2024Copper ContributorThank you for the detailed answer.
I tried this but there is no "Choose "Insert" > "UserForm" to add a new UserForm." option in the developer tab.- crazysidewaysdogJul 15, 2024Copper ContributorI have the same problem on Excel for Mac 365 version 16.86 (24060916)
- peiyezhuJul 15, 2024Bronze ContributorHow about copy selected date from a web page?