Drop Down Calendar In Excel 2011

Posted on  by 

This post explores macro-free methods for using Excel’s data validation feature to create an in-cell drop-down that displays choices depending on the value selected in a previous in-cell drop-down. Overview As with just about anything in Excel, there are several ways to achieve the goal. This post explores three such solutions, and if you have a. Enter the list of values for your drop-down in a column. Make sure to enter each drop-down entry in a separate, consecutive cell in the same column. For example, if you want your drop-down list to include 'New York,' 'Boston,' and 'Los Angeles,' you can type 'New York' in cell A1, 'Boston' in cell A2, and 'Los Angeles' in cell A3.

-->

Note

Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise. For more information about this change, read this blog post.

Summary

This article contains a sample Microsoft Visual Basic for Applications macro (sub-procedure) that prompts you for the month and year and creates a monthly calendar by using a worksheet.

Resolution

Note

Excel

Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.

How To Insert A Drop Down Calendar In Excel For Mac

To create the calendar, follow these steps.

Microsoft Excel 2003

  1. Create a workbook.
  2. On the Tools menu, point to Macro, and then select Visual Basic Editor.
  3. On the Insert menu, select Module.
  4. Paste the Visual Basic for Applications script from the 'Sample Visual Basic procedure' section into the module sheet.
  5. On the File menu, select Close and Return to Microsoft Excel.
  6. Select the Sheet1 tab.
  7. On the Tools menu, point to Macro, and then select Macros.
  8. Select CalendarMaker, and then select Run to create the calendar.

Microsoft Excel 2007 or later

  1. Create a workbook.
  2. On the Developer ribbon, select Visual Basic.
  3. On the *Insert menu, select Module.
  4. Paste the Visual Basic for Applications script from the 'Sample Visual Basic procedure' section into the module sheet.
  5. On the File menu, select Close and Return to Microsoft Excel.
  6. Select the Sheet1 tab.
  7. On the *Developer ribbon, click Macros.
  8. Select CalendarMaker, and then select *Run to create the calendar.

Note

If the Developer ribbon is not visible, open Excel Options to enable it. In Excel 2007, the option is available on the Popular menu. In Excel 2010, the option is available on the Customize Ribbon menu.

Sample Visual Basic procedure

You can add other code to customize the calendar to meet your needs. Insert extra rows for entry on the screen for each day or resize the screen to see the whole calendar based on screen size and resolution.

Coments are closed