Microsoft KB Archive/113201

{|
 * width="100%"|

PRJ4: Change Working Time Dialog Box Appears w/Macro

 * }

Q113201

-

The information in this article applies to:


 * Microsoft Project for Windows, version 4.0
 * Microsoft Project for the Macintosh, version 4.0

-

SYMPTOMS
In Microsoft Project, if you record a macro that creates a new calendar (either as a new base calendar or from a copy of the Standard calendar), when you run the macro, the calendar is created correctly, but the Change Working Time dialog box also appears.

CAUSE
When you record a macro that creates a copy of the Standard calendar, an unnecessary line is recorded in the macro that displays the Change Working Time dialog box.

WORKAROUND
To avoid displaying the Change Working Time dialog box when you run a recorded macro that creates a copy of the Standard calendar, edit the macro and remove the unnecessary line as follows:


 * 1) From the Tools menu, choose Macros.
 * 2) From the Macro Name list, select the name of the macro that you recorded that creates a copy of the Standard calendar. Choose Edit.
 * 3) Delete the following line from the macro:

Steps to Reproduce Behavior

 * 1) In a new project, choose Record Macro from the Tools menu. In the Macro Name box, type Create_New_Calendar. Choose OK.
 * 2) From the Tools menu, choose Change Working Time. Choose the New button. In the Name box, type New Base Calendar. Select the Create New Base Calendar option and choose OK. In the Change Working Time dialog box, choose OK.
 * 3) From the Tools menu, choose Stop Recorder.
 * 4) From the File menu, choose New to create a new project.
 * 5) From the Tools menu, choose Macros. From the Macro Name list, select Create_New_Calendar and choose Run.

The Change Working Time dialog box appears.

Note that the New Base Calendar is correctly created for the new project.

Additional query words:

Keywords : kbcode kbmacro

Issue type : kbbug

Technology : kbHWMAC kbOSMAC kbProjectSearch kbProject400Mac kbProjectMacSearch kbProject400