添加“继任者”使用VBA的列
如何在MS项目中设置一个额外的列?
我尝试了记录的宏观选项并复制了代码,但仍面临错误。
Sub addcolumn()
' Macro addcolumn
SelectTaskColumn Column:="Add New Column"
TableEditEx Name:="&Entry", TaskTable:=False, NewName:="", FieldName:="Text1", NewFieldName:="Successors", Title:="", ColumnPosition:=8
TableApply Name:="&Entry"
End Sub
收到此错误:
运行时错误'1004':
字段“继任者”不存在。
How do I set an additional column in MS Project?
I tried the record macro option and copy-pasted the code but still facing errors.
Sub addcolumn()
' Macro addcolumn
SelectTaskColumn Column:="Add New Column"
TableEditEx Name:="&Entry", TaskTable:=False, NewName:="", FieldName:="Text1", NewFieldName:="Successors", Title:="", ColumnPosition:=8
TableApply Name:="&Entry"
End Sub
Receive this error:
Run-time error '1004':
The field "Successors" does not exist.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于继任者是一个任务字段,因此第二个参数必须为真:
请参见 application.tableEditex方法有关更多详细信息。
Since Successors is a Task field, the second argument needs to be True:
See Application.TableEditEx method for more details.