Sub Select_Row()
'Activate Gantt Chart
ViewApply Name:="&Gantt Chart"
SelectRow Row:=3, RowRelative:=False, Height:=2, Add:=True
End Sub
以上子程序在Project VBA中工作正常,但是當我在VSTO中嘗試相同時。我收到錯誤SelectRow is not declared
。由於其保護級別,它可能無法訪問。MS Project中的SelectRow方法。在VBA項目中工作良好,但在VSTO中沒有問題
也許你必須讓你的項目引用。請參閱[本](http://zo-d.com/blog/archives/programming/making-the-move-from-vba-to-vsto-in-microsoft-project.html) – ZAT 2014-10-11 06:07:58