使用vba问题在MS Project中添加新条目
如果我想使用 vba 在项目中添加一个新条目,代码将是:
prjApp.TableEdit Name:="&Entry", TaskTable:=True, OverwriteExisting:=True, NewName:="", NewFieldName:="Outline Code10", Width:=20, ShowInMenu:=True, LockFirstColumn:=True, DateFormat:=255, RowHeight:=1
prjApp.TableApply Name:="&Entry"
但如果项目不是英语,而是例如意大利语,您将收到错误,因为您将得到“&Immissione”,而不是“&Entry”。
如果能够独立于语言就好了,但是如何实现呢?
If i want add a new entry in project using vba the code will be:
prjApp.TableEdit Name:="&Entry", TaskTable:=True, OverwriteExisting:=True, NewName:="", NewFieldName:="Outline Code10", Width:=20, ShowInMenu:=True, LockFirstColumn:=True, DateFormat:=255, RowHeight:=1
prjApp.TableApply Name:="&Entry"
but if project is not in english but for example in italian you will get an error because instead of "&Entry" you will have "&Immissione".
It' would be nice be language-independent but how?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不是如何回答,但修改默认表不是一个好的做法。
相反,我会创建一个新表并按照我想要的方式查看。
Not an answer to how, but it is not a good practice to modify the default tables.
Instead I'd create a new table and view the way I want.