Microsoft KB Archive/113133

= PRJ: Too Many Events Recorded When Editing Tables =

Article ID: 113133

Article Last Modified on 1/18/2007

-

APPLIES TO


 * Microsoft Project 2000 Standard Edition
 * Microsoft Project 98 Standard Edition
 * Microsoft Project 4.1 Standard Edition
 * Microsoft Project 4.1a
 * Microsoft Project 4.0 Standard Edition
 * Microsoft Project 4.0 for Macintosh

-



This article was previously published under Q113133



SYMPTOMS
In Microsoft Project, when you edit a table while the macro recorder is running, the macro records not only an event for the individual table column or columns that you edit, but it also records an event for each column that exists in the table. The event recorded is the TableEdit method.



WORKAROUND
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.

To reduce the size of your macro, edit the macro and delete the unnecessary lines. For example, to add the Notes field to the Entry table, the only necessary macro command is the following: TableEdit Name:="&Entry", TaskTable:=True, NewFieldName:="Notes", _ Title:="", Width:=10, Align:=2, LockFirstColumn:=True, _ DateFormat:=255, RowHeight:=1 Note that the arguments in the above command depend on the options you select in the Table Definition dialog box.

