Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

Template task detail modify project server using Microsoft.Office.Interop.MSProject.Project

$
0
0

Hello Everyone !!!

I want to modify the tempate task custom field and save the template again using Microsoft.Office.Interop.MSProject.Project

I have written below code

 For Each tsk As Microsoft.Office.Interop.MSProject.Task In PrjWsApp.ActiveProject.Tasks

                If Not tsk Is Nothing Then
                        tsk.Name = "test task update"
                End If
            Next tsk

PrjWsApp.DisplayAlerts = False
            PrjWsApp.FileSave()
            PrjWsApp.FileCloseEx(Microsoft.Office.Interop.MSProject.PjSaveType.pjSave, , True)
            PrjWsApp.DisplayAlerts = True

but it is not updating the template. Please suggest how to update the template and save it



Viewing all articles
Browse latest Browse all 5347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>