Date Picker Option Missing On Microsoft Word 2016

Close Microsoft Word. Turn on file name extensions. For Windows 7 Press Windows key + X and select Control Pannel. Select Appearance and Personalization, and then choose File Explorer Options. Select the View tab. Under Advanced settings, clear the Hide extensions for know file types check box. Insert date picker showing current date by default in Word To insert a date picker which always shows the current date by default before you picking up a date, please do as follows: 1. Click File Options.

  1. Date Picker Option Missing On Microsoft Word 2016 64 Bit
  2. Date Picker Option Missing On Microsoft Word 2016 Activator
  3. Date Picker Option Missing On Microsoft Word 2016 Crack
  4. Date Picker Option Missing On Microsoft Word 2016 File
  5. Date Picker Option Missing On Microsoft Word 2016 Download And Install
  6. Date Picker Option Missing On Microsoft Word 2016
  7. Date Picker Option Missing On Microsoft Word 2016 download free. full

If you've attended one of our Excel VBA training courses you might remember using the Date and Time Picker control when building a user form.

An exciting shot of the Date and Time Picker in action. As its name suggests, it allows a user to pick a date and time value rather than having to type it in.

The Date and Time Picker is immensely useful when designing VBA user forms but, sadly, it isn't included with every version of Windows. I discovered this recently when moving to a new machine with a 64bit edition of Windows 7 installed. Fortunately, it is relatively simple to install the Date and Time Picker, as long as you don't mind getting your hands dirty with a couple of simple command line instructions.

Downloading the Files You'll Need

The Date and Time Picker is part of a library of tools with the catchy title of MSCOMCT2.OCX. To start with, you'll need to download this file from the Microsoft support site.

Click this link on the page to start downloading the file.

UPDATE: Sadly, Microsoft have since removed this file from their site. You can still download it from a variety of third-party sites which you can find with a brief bit of Googling.

When you've clicked the link to start downloading the file, choose to save it somewhere on your computer.

Click the Save as option so that you can choose where to save the file.

On the next dialog box choose a location on your computer and then click Save to download the file.

Extracting the Downloaded File

Once it's finished downloading you'll need to extract the file. Start by double-clicking on the file that you've downloaded.

Double-click the .cab file to see what it contains.

Once inside the .cab file you can choose to extract the .ocx file by right-clicking on it and choosing Extract...

Right-click the file called mscomct2.ocx and choose to extract it.

Choose which folder you want to extract the file to and click Extract.

Select an existing folder, or create a new one, and then click Extract.

Copying the File to the Correct Folder

In order to make use of the file you've downloaded you'll need to place it in the correct folder for the edition of Windows that you're using. Start by opening a Windows Explorer window and browsing to the Windows installation folder. On my machine this is C:Windows.

The next folder you need to browse to depends on which edition of Windows you're using. If you're using a 32bit edition you'll need the System32 folder. If you're using a 64bit edition, like I am, you'll need SysWOW64.

Once you've navigated to the correct folder, simply move or copy the MSCOMCT2.OCX file into it.

The file now sits in the correct folder.

Date Picker Option Missing On Microsoft Word 2016 64 Bit

Date picker option missing on microsoft word 2016 activator

Registering the File

Before you can make use of the file you'll need to register it. You can do this using the command line tool in Windows. Go to the Start menu and in the search box type cmd.

Type cmd into the search box at the bottom of the Start menu.

Still in the Start menu, right-click on the cmd.exe item which appears and choose to run it as an adminstrator.

Right-click on the icon and choose Run as administrator.

At the command prompt make sure that the directory shown is the same as the one you copied the file into earlier.

If I was running a 32bit edition of Windows 7 this would be pointing to the correct folder.

If you need to change the directory you can do so using a command similar to the one shown below. Of course, you'll need to use the directory relevant to your own Windows installation.

Press Enter at the end of the line to change the directory.

Once you've changed the directory you can write one final command to register the file on your machine.

For reference, the command is regsvr32 mscomct2.ocx

If everything works normally you should see a message similar to the one shown below:

Using the Date and Time Picker

You should now find that you can use the Date and Time Picker control in your VBA forms.

Microsoft

In the design view of a VBA form, right-click on the Toolbox and choose Additional Controls...

On the dialog box which appears, check the box next to the entry for the Microsoft Date and Time Picker Control 6.0.

You'll find that you have access to several other controls from the mscomct2.ocx library as well.

-->

A date and time picker (DTP) control provides a simple and intuitive interface through which to exchange date and time information with a user. For example, with a DTP control you can ask the user to enter a date and then easily retrieve the selection.

The following topics are discussed:

  • Date and Time Picker Control Styles and Formats

Note

Windows does not support dates prior to 1601. See the FILETIME structure for details.

The control is based on the Gregorian calendar, which was introduced in 1753. It will not calculate dates that are consistent with the Julian calendar.

Date and Time Picker User Interface

The client area of a date and time picker (DTP) control displays date or time information, or both, and acts as the interface through which users modify the information. The date can be selected from a calendar, or by using an up-down control; the time can be changed by typing in fields that are defined by the control's Format Strings. Optionally, the control displays a check box. When it is checked, the value in the control can be retrieved; otherwise, the control is considered to be uninitialized.

The following illustration shows a window that contains three date-picker controls. The first date-picker control was created with the DTS_SHOWNONE style, the second with the DTS_UPDOWN style, and the third with no special styles. In the third control, the user has clicked the down arrow to display the calendar.

Date Picker Option Missing On Microsoft Word 2016 Activator

The following illustration shows a windows with three controls that contain the time.

Date Picker Option Missing On Microsoft Word 2016 Crack

The first control has been created with the DTS_TIMEFORMAT style and shows the time in the default time, which consists of four fields. The user can type a valid value in any of these fields, or select the field and change the value by using the up-down control or arrow keys.

The second control shows a custom format set by using DateTime_SetFormat. As with the first control, the user can change the time fields by typing or by using arrow keys. The day of the week can be changed by selecting a date from the calendar that opens when the user clicks on the down arrow.

The third control shows how arbitrary text can be added to the control. The user can select an hour (from 1 to 24) by typing, by using the arrow keys, or by using the up-down control.

The DTP control automatically updates internal information based on the user's input. The control recognizes the following as valid input.

Input CategoryDescription
Arrow KeysThe control accepts arrow keys to navigate the fields in the control and change values. The user can press the or keys to move through the control If the user attempts to move past the last field in a given direction, the keyboard focus 'wraps around' to the field on the opposite side of the control. The and keys change values in the current field incrementally.
End and HomeThe control accepts the VK_END and VK_HOME virtual keys to change the value within the current field to its upper and lower limits, respectively.
Function KeysThe key activates edit mode. The key causes the control to display a drop-down month calendar control (pressing does this as well).
NumbersThe control accepts numeric input in two-character segments. If the value entered by the user is invalid (like setting the month to 14), the control rejects it and resets the display to the previous value.
Plus and MinusThe control accepts the VK_ADD and VK_SUBTRACT virtual keys from the numeric keypad to increment and decrement the value in the current field.

DTP controls that do not use the DTS_UPDOWN style display an arrow button. If the user clicks this button, a month calendar control drops down. The user can select a specific date by clicking an area of the calendar.

Date and Time Picker Control Styles and Formats

Date and time picker (DTP) controls have several Date and Time Picker Control Styles that determine a control's appearance and behavior. Specify the style when creating the control with the dwStyle parameter of CreateWindowEx. To retrieve or change the window style after you have created the control, use GetWindowLong and SetWindowLong.

Preset Formats

There are three preset formats available for displaying the date and one for displaying time. Set these formats by choosing one of the following window styles.

Date Picker Option Missing On Microsoft Word 2016 File

DTS_LONGDATEFORMATThe display will look like: 'Friday, April 19, 1996'.
DTS_SHORTDATEFORMATThe display will look like: '4/19/96'.
DTS_SHORTDATECENTURYFORMATVersion 5.80. The display will look like: '4/19/1996'.
DTS_TIMEFORMATThe display will look like: '5:31:42 PM'.

Custom formats

A DTP control relies on a format string to determine how it will display fields of information. If the preset formats are not sufficient, you can create a custom format by defining your own format string. Custom formats provide greater flexibility for an application. They enable you to specify the order in which the control will display fields of information. You can include body text as well as callback fields for requesting information from the user. Once the string is created, you assign it to the DTP control with a DTM_SETFORMAT message.

Format Strings

A DTP format string consists of a series of elements that represent a particular piece of information and define its display format. The elements will be displayed in the order they appear in the format string.

Date Picker Option Missing On Microsoft Word 2016 Download And Install

Date and time format elements will be replaced by the actual date and time. They are defined by the following groups of characters.

ElementDescription
'd'The one- or two-digit day.
'dd'The two-digit day. Single-digit day values are preceded by a zero.
'ddd'The three-character weekday abbreviation.
'dddd'The full weekday name.
'h'The one- or two-digit hour in 12-hour format.
'hh'The two-digit hour in 12-hour format. Single-digit values are preceded by a zero.
'H'The one- or two-digit hour in 24-hour format.
'HH'The two-digit hour in 24-hour format. Single-digit values are preceded by a zero.
'm'The one- or two-digit minute.
'mm'The two-digit minute. Single-digit values are preceded by a zero.
'M'The one- or two-digit month number.
'MM'The two-digit month number. Single-digit values are preceded by a zero.
'MMM'The three-character month abbreviation.
'MMMM'The full month name.
't'The one-letter AM/PM abbreviation (that is, AM is displayed as 'A').
'tt'The two-letter AM/PM abbreviation (that is, AM is displayed as 'AM').
'yy'The last two digits of the year (that is, 1996 would be displayed as '96').
'yyyy'The full year (that is, 1996 would be displayed as '1996').

To make the information more readable, you can add body text to the format string by enclosing it in single quotes. Spaces and punctuation marks do not need to be quoted.

Note

Nonformat characters that are not delimited by single quotes will result in unpredictable display by the DTP control.

For example, to display the current date with the format 'Today is: 04:22:31 Tuesday Mar 23, 1996', the format string is 'Today is: 'hh':'m':'s dddd MMM dd', 'yyyy'. To include a single quote in your body text, use two consecutive single quotes. For example, 'Don't forget' MMM dd',' yyyy' produces output that looks like: Do not forget Mar 23, 1996. It is not necessary to use quotes with the comma, so 'Don't forget' MMM dd, yyyy' is also valid, and produces the same output.

Callback fields

Word

In addition to the standard Format Strings and body text, you can also define certain parts of the display as Callback fields. These fields can be used to query the user for information. To declare a callback field, include one or more 'X' characters (ASCII Code 88) anywhere in the format string. You can create callback fields that have a unique identity by repeating the 'X' character. Thus, the format string 'XX dddd MMM dd', 'yyy XXX' contains two unique callback fields, 'XX' and 'XXX'. Like other DTP control fields, callback fields are displayed in left-to-right order based on their location in the format string.

When the DTP control parses the format string and encounters a callback field, it sends DTN_FORMAT and DTN_FORMATQUERY notification codes. The format string element corresponding to the callback field is included with the notifications to allow the receiving application to determine which callback field is being queried. The owner of the control must respond to these notifications to ensure that the custom information is properly displayed.

Date and Time Picker Control Notification Messages

Date Picker Option Missing On Microsoft Word 2016

Date Picker Option Missing On Microsoft Word 2016

A date and time picker (DTP) control sends notification codes when it receives user input or processes and reacts to callback fields. The parent of the control receives these notification codes in the form of WM_NOTIFY messages.

The following notification codes are used with DTP controls.

Date Picker Option Missing On Microsoft Word 2016 download free. full

Notification codeDescription
DTN_CLOSEUPIndicates that the drop-down month calendar is about to be removed.
DTN_DATETIMECHANGESignals a change within the DTP control.
DTN_DROPDOWNIndicates that the drop-down month calendar is about to be displayed.
DTN_FORMATRequests text to display in a portion of the format string described as a callback field.
DTN_FORMATQUERYRequests information about the maximum allowable size of the text to be displayed in a callback field.
DTN_USERSTRINGSignals the end of a user's edit operation within the control. This notification is sent only by DTP controls that use the DTS_APPCANPARSE style.
DTN_WMKEYDOWNSignals that the user has pressed a key in a callback field of the DTP control.

Related topics