microsoft-project-vba

FilePageSetupHeader in MS Project VBA project: Display image dynamically

I want to display an image when printing a page from MS Page using the FilePageSetupHeader. It all works fine if I pass in the parameter for the Text property as a string as such FilePageSetupHeader Alignment:=pjRight, Text:="&P""C:\filepath\image.gif""" However, I'd prefer to be able to pass the filepath to the image to display as a ...

Assigning Task.Duration to an already added Task in VBA Microsoft Project

I'm currently working on a VBA macro importing product-requirements into Microsoft Project. I use the following code for adding/updating a task: Function AddTask(strText As String, lngDuration As Long, taskParent As Task) Dim oldTask As Task Set oldTask = taskParent.OutlineChildren(strText) If oldTask Is Nothing Then ...