Share via


Application.OptionsEdit Method

Project Developer Reference

Sets editing options.

Syntax

expression.OptionsEdit(MoveAfterReturn, DragAndDrop, UpdateLinks, CopyResourceUsageHeader, PhoneticInfo, PhoneticType, MinuteLabelDisplay, HourLabelDisplay, DayLabelDisplay, WeekLabelDisplay, YearLabelDisplay, SpaceBeforeTimeLabel, SetDefaults, MonthLabelDisplay, SetDefaultsTimeUnits, HyperlinkColor, FollowedHyperlinkColor, UnderlineHyperlinks, SetDefaultsHyperlink, InCellEditing)

expression   A variable that represents an Application object.

Parameters

Name Required/Optional Data Type Description
MoveAfterReturn Optional Boolean True if the next cell or field becomes active when ENTER is pressed. False if the current cell or field remains active.
DragAndDrop Optional Boolean True if cells may be copied or moved by dragging them.
UpdateLinks Optional Boolean True if OLE links are updated automatically when the relevant information changes.
CopyResourceUsageHeader Optional Due to changes in the object model of Project, this argument is ignored. It is retained so that existing macros which make use of this argument do not cause errors.
PhoneticInfo Optional Boolean True if phonetic information is automatically provided for resource names and custom fields. The PhoneticInfo argument is ignored unless the Japanese version of Project is used.
PhoneticType Optional Long Specifies the type of characters used to display phonetic information. Can be one of the following PjPhoneticType constants: pjKatakanaHalf, pjKatakana, or pjHiragana. The PhoneticType argument is ignored unless the Japanese version of Project is used.
MinuteLabelDisplay Optional Integer Specifies how the minute label displays. The minute label display corresponds to the Minutes list, which is found on the Edit tab of the Options dialog box (Tools menu). For example, setting the MinuteLabelDisplay property to 0 sets the Minutes list to the first value in the list.
HourLabelDisplay Optional Integer Specifies how the hour label displays. The hour label display corresponds to the Hours list, which is found on the Edit tab of the Options dialog box (Tools menu). For example, setting the HourLabelDisplay property to 0 sets the Hours list to the first value in the list.
DayLabelDisplay Optional Integer Specifies how the day label displays. The day label display corresponds to the Days list, which is found on the Edit tab of the Options dialog box (Tools menu). For example, setting the DayLabelDisplay property to 0 sets the Days list to the first value in the list.
WeekLabelDisplay Optional Integer Specifies how the week label displays. The week label display corresponds to the Weeks list, which is found on the Edit tab of the Options dialog box (Tools menu). For example, setting the WeekLabelDisplay property to 0 sets the Weeks list to the first value in the list.
YearLabelDisplay Optional Integer Specifies how the year label displays. The year label display corresponds to the Years list, which is found on the Edit tab of the Options dialog box (Tools menu). For example, setting the YearLabelDisplay property to 0 sets the Years list to the first value in the list.
SpaceBeforeTimeLabel Optional Boolean True if a time value should be separated from its time label by a space.
SetDefaults Optional Boolean True if the values of PhoneticInfo , PhoneticType , MinuteLabelDisplay , HourLabelDisplay , DayLabelDisplay , WeekLabelDisplay , MonthLabelDisplay , YearLabelDisplay , and SpaceBeforeTimeLabel are used as the default values for new projects. The default value is False.
MonthLabelDisplay Optional Integer Specifies how the month label displays. The month label display corresponds to the Months list, which is found on the Edit tab of the Options dialog box (Tools menu). For example, setting the MonthLabelDisplay property to 0 sets the Months list to the first value in the list.
SetDefaultsTimeUnits Optional Boolean True if the values specified in the View options for time units section, found on the Edit tab of the Options dialog box, are used as the default values for new projects. The default value is False.
HyperlinkColor Optional Long The color used to denote unfollowed hyperlinks. Can be one of the following PjColor constants:
pjColorAutomaticpjNavy
pjAquapjOlive
pjBlackpjPurple
pjBluepjRed
pjFuchsiapjSilver
pjGraypjTeal
pjGreenpjYellow
pjLimepjWhite
pjMaroon
pjColorAutomatic pjNavy
pjAqua pjOlive
pjBlack pjPurple
pjBlue pjRed
pjFuchsia pjSilver
pjGray pjTeal
pjGreen pjYellow
pjLime pjWhite
pjMaroon
FollowedHyperlinkColor Optional Long The color used to denote followed hyperlinks. Can be one of the PjColor constants.
UnderlineHyperlinks Optional Boolean True if hyperlinks are underlined.
SetDefaultsHyperlink Optional Boolean True if the values specified in the Hyperlink appearance section, found on the Edit tab of the Options dialog box, are used as the default values for new projects. The default value is False.
InCellEditing Optional Boolean True if in-cell editing is enabled.

Return Value
Boolean

Remarks

If an argument is omitted, its default value is specified by the current setting on the Edit tab of the Options dialog box.

Using the OptionsEdit method without specifying any arguments displays the Options dialog box with the Edit tab selected.

See Also