Questions tagged [ms-project]
Microsoft Project is a tool to help plan projects and track progress against that plan
1,027
questions
1
vote
1
answer
55
views
Code Consolidation for Processing Custom Data Structure
I have developed a VBA application in MS Project to measure the quality of a project schedule. My app analyzes every task in a schedule and determines 35 different attributes which are then combined ...
1
vote
1
answer
41
views
How to filter tasks in MS Project, using VBA, and with multiple conditions?
I have a line of VBA code that creates a filter with one condition, this works well:
FilterEdit Name:="temp", TaskFilter:=True, Create:=True, OverwriteExisting:=True, FieldName:="...
0
votes
1
answer
45
views
Parse datetime string value of MS Project
I need to retrieve Datetime value of custom fields assigned to Resource.
I can retrieve value from custom field as String value with using GetField.
This value will be formatted with DefaultDateFormat ...
0
votes
1
answer
32
views
C# How to Sync Tasks From Project Plan to SharePoint Tasks List
I have an application that automatically converts a certain file and I receive a file in .mpp format, is it possible to automatically sync an mpp list and a Sharepoint task list. As shown in the ...
0
votes
0
answers
29
views
The start date is not updated even though everything is automatic
I prepared a work program in Ms Project. I manually wrote the beginning of the 7th column as 01.01.2023. I entered the duration of the job as 3 days and the completion date was automatically 03.01....
0
votes
0
answers
17
views
MS Project/PWA Approvals When Dates Change
Is there a way to lock down PWA schedules and require an approval work flow to change dates? Maybe using Power Apps? I am looking to implement a simple change control process.
I have been googling and ...
0
votes
0
answers
53
views
MS Project - Baseline Work shows in accurate values when extracting using VBA
Updated 20Nov23: I am adding line of code.
Apologies for not coming back earlier but I got pulled into some other stuff. I have multiple Tsvs and they are set as follows:
Set tsvs = Tsk.TimeScaleData(...
-1
votes
0
answers
10
views
How can i get an opened ms Project file from Aspose.Tasks?
I opened a ms project file and excel file,what i want is to read it from project file into an activate worksheet ,and write it back to Project file,Can I do it by Aspose.tasks?
Is there a way to get ...
1
vote
1
answer
86
views
In MS Project, using VBA, I want to move data between custom fields based on the contents of an excel file
I want to move the contents of various custom fields around, for instance Text1 -> Text2 and then Text3 -> Text1.
I can do this using a series of entries in VBA:
Sub transfer_test_1()
Dim t As ...
1
vote
1
answer
30
views
MS Project Read Project Custom Fields
I need to retrieve values of custom fields assigned to Project. These custom fields are Enterprise fields create in PWA. In the Interop.MSProject.dll there are similar in name properties "Text1 - ...
0
votes
0
answers
50
views
MS Project Read Enterprise Custom Fields
I need to retrieve values of custom fields assigned to Resource. These custom fields are Enterprise fields - i.e. create in PWA.
In the Interop.MSProject.dll there are similar in name properties "...
0
votes
0
answers
62
views
"91 object variable or with block variable not set" while using tsk.summary
Getting the 91 error while trying to access the summary property. (using ms-project 2019)
Not shure if its my code since i get the same error while testing the exampel from
https://learn.microsoft.com/...
1
vote
2
answers
44
views
MS Project. VB, Vb.NET. Application.CustomFieldValueListGetItem - How to get all Items?
How can i get all items in List?
Function "CustomFieldValueListGetItem" gets the elements only by index.
I don't know the last index. Can't find such property or function that returns it.
Is ...
1
vote
0
answers
68
views
How to properly connect to Project Online via REST API
I've been trying to connect to my Project Online instance using the REST API, and as a first step to simply list the projects and validate the connection works. I've reviewed various documentation, ...
1
vote
0
answers
30
views
Predecessor impacting project completion time
I am using MS project for the first time. I am having difficulty understanding how to configure predecessor correctly. My current setup is causing my project to take longer than my goal time of 8 ...
1
vote
1
answer
51
views
MS Project VBA: create an object with a subset of tasks
I'm writing a sub to get data from the active project's tasks. What I'm trying to do is pass a configuration parameter, and depending on that I either set my subset of tasks to what's contained in ...
1
vote
1
answer
142
views
Excel VBA: Copy data from MS Project to Excel and back
I know you can export data with MSP to Excel.
Still the manager wants me to write a vba script.
There is a schedule in MSP and some data in Excel belonging together. Data from MSP is pasted into Excel,...
0
votes
0
answers
8
views
appProj.VisualReportsNewTemplate creates no new Excel table with an pivot table in it
I will generate a pivot table in Excel out of MSProject with VBA.
The following methode worked in the past but jet it throws out a failure:
appProj.VisualReportsNewTemplate PjVisualReportsTemplateType:...
1
vote
3
answers
147
views
How can I prevent the time of day from appearing on a date in a cell?
I have a macro that sets a cell to a date value pulled from a task object from the MS Project API like this:
Sub Example(t as MSProject.Task, row As Integer, column As Integer)
dim dt as Date
...
2
votes
1
answer
48
views
Run time error 462 The remote server machine does not exist - runs ok first time, errors on second code run - MS Project and Excel
Am running some VBA from within MS Project, exporting an Excel sheet based on a saved map and then opening it to tidy it up and format. Works fine on the first pass, second try and I get error 462 ...
2
votes
1
answer
63
views
Is there a way to programmatically tell when Project has finished Publishing to Project Server?
I have a tool that is going to open a MS Project file off the Project Web App (PWA/Project Server). and make some changes. I then need to save the file and publish the changes before closing it and ...
1
vote
1
answer
34
views
How to include the employee's multiple work hours with dates on the task using vsto add-in for microsoft project
In my vsto add-in for Microsoft Project, following code is not including the all work hours which i have defined at variable 'entryDates'. Because, Inside the loop, existing assignment is updating ...
1
vote
1
answer
50
views
How to import the employee's work hours to TimeScaleData in microsoft project file using vsto add-in
How to import the employee's work hours to TimeScaleData in microsoft project file using vsto add-in?
Here is the sample data I have,
[{Name:"Phase 1", BaselineStart:"2023-01-01", ...
0
votes
1
answer
52
views
VBA: How to loop through all Gantt Bar Styles in MS Project
I am currently working on a VBA macro that will configure Gantt Bar Styles in MS Project. Turns out I can't simply use a template because I have to import XML data from an online app, and doing an ...
0
votes
0
answers
18
views
MS Project multiple entry dates with duration for single task
What is the best way to maintain the following hierarchy in Microsoft Project (.mpp) file?
Country will have multiple Jobs and each Job will have multiple of Phases and each Phase will have multiple ...
0
votes
0
answers
55
views
Normal Distribution Microsoft Project
I'm trying to make a Macro in VBA to calculate normal distribution in MS Project. Does anyone know the proper command to do this?
Thanks in advance,
C.
I've tried to do this in different ways, even ...
0
votes
0
answers
50
views
Import / Export MS Project in Outsystems
How to Import / Export MS Project file types in Outsytems applications?
Client doesn't want to get an excel to import in MS project.
I have searched the forge and haven't found anything related.
I ...
0
votes
0
answers
35
views
An exception occuring while creating summary task and task information in Microsoft Project via Add-In using VSTO
In my VSTO(Visual Studio Tools for Office) Add-in for Microsoft Project, I'm getting this error:
System.Runtime.InteropServices.COMException: 'The argument value is not valid.'
I am trying to Add ...
0
votes
0
answers
26
views
MPXJ in .NET Update MS Project file and convert to json
I'm using the MPXJ library in .NET for parsing MS Project (MPP) files and convert it to JSON for my web application. The problem is that I can't update the links in the file to get the latest data at ...
0
votes
1
answer
34
views
Customizing "Team Planner" views
Is it possible to change what is displayed within the Team Planner?
I use indented Tasks to separate different aspects of projects, assigning different Resources as appropriate. For Example, I might ...
1
vote
1
answer
63
views
MS Project VBA: Automation error when using custom ribbon buttons
I am trying to get a simple custom ribbon button working in MS Project and seem to be getting an "Automation Error: Exception Occured" whenever I actually click the button. I do not have any ...
0
votes
0
answers
79
views
How to copy data from Excel and Paste into Project using a VBA Code?
Does anyone know how to copy data from Excel and Paste into Project using a VBA Code. I have a large Excel document that I want the Macro to go through, to pull the necessary tasks, and then paste the ...
1
vote
1
answer
70
views
MS Project Pivot table being created in older version of Excel
I have a snippet of code from MS Project to extract data and then create a pivot table in Excel.
When I tried to add a slicer to that pivot table, the icon is greyed out. I googled and found it is ...
1
vote
0
answers
86
views
Adding an exception to a resource calendar for a working day on a defined non-working day throws out % Complete value
I have written a macro that reads timesheet data and updates the TimeScaleData in the project to update the status.
A staff member works on the occasional Saturday or a Sunday, which are defined as a ...
2
votes
0
answers
42
views
English language macro for French version of MS Project
I wrote a VBA procedure for a client who has the French version of Project. Besides the language difference in Project field names the macro also has some MsgBox and InputBox statements and of course ...
0
votes
1
answer
81
views
Change Background Color of Task Row Based on Percent Complete Value
I want to change the background color of the entire task row based on the percent complete value in Microsoft Project.
The code goes through the entire document and changes every line to be shaded in ...
0
votes
1
answer
126
views
How to authorise to MS Project ODATA API by using ClientCredentialFlow?
I am using the Python msal package and the ClientCredentialFlow when trying to authenticate to the MS-project odata API using following script:
import requests
import msal
def get_access_token():
...
0
votes
0
answers
47
views
Autofill Syntax not working when running VBA
I have recorded the macro in Excel where it is working fine. The code in Excel looks like below:
'Setting Planned Work
Range("C14").Select
Application.CutCopyMode = False
ActiveCell....
0
votes
0
answers
75
views
Custom event with VBA in ms Project
I'm working on Microsoft Projects and each of my tasks have a project ID. No two tasks should have the same project ID and the project ID has a format it must follow.
(For example the format is "...
0
votes
1
answer
60
views
MS Project get Taskdependencies property via Excel VBA
I am currently creating a macro in Excel VBA to import data from a MS project document.
I included all properties that I want to import in my code but couldn't find the correct for TaskDependencies (i,...
0
votes
0
answers
21
views
How to Publish and CheckIn MS Project Online file
Newbie looking for some help. I'm looking for a way to Checkin the Project file on close. The below code seems to publish the project. I did find this link but couldn't get it to work. https://learn....
0
votes
0
answers
12
views
How can I get cost to appear correctly in Ms Project
I'm learning MS Project and I added work resources to my project file. I added hourly rates to the work resources. I'm having an issue where when I add the work resource to a task, the task will show ...
0
votes
0
answers
23
views
How to get WBS from MPP(MS Project) file in to c# project
I want to get WBS from ms projct and use it in my C# projct.
is there a way to do that?
How Can I use VSTO to get wbs?
acctualy I want to sync wbs to my C# project...
Any Help? thank You...
0
votes
1
answer
55
views
Does MS-Project ODATA-Feed support Create, update or delete operations?
I'm talking about the MS-Project Online ODATA-Feed, described e.g. here: https://learn.microsoft.com/de-de/previous-versions/office/project-odata/jj163015(v=office.15)
I can't find any information if ...
0
votes
0
answers
16
views
How to see the Dependencies linked to Deliverables - Project Online
We are using MS Project Online and have a couple of Deliverables in each Project (50+ projects). We then use the Dependency function to link them and update.
Question: how can you write a report that ...
0
votes
0
answers
64
views
ExportAsFixedFormat method on Project
I have got the next error when I try to use Subroutine. The error is:
My code is:
Sub CreatePackages()
Dim folderPath As String
Dim matrix As Project
Dim template As Project
Dim templatePath As String
...
1
vote
0
answers
179
views
How to authenticate against ms project online odata interface in python?
My goal is to access the odata-api of MS-project (online = cloud-version) in python. The api is accessible under:
https://mycompany.sharepoint.com/sites/myprojectinstance/_api/ProjectData/
My active-...
1
vote
1
answer
43
views
How to add a yearly exception inside a MPP using VBA code?
I expect the code to be similar to the question here:
Insert exceptions into Resource Calendar
From the MPP interface you just select the "yearly" radio button and set the day and month in ...
1
vote
2
answers
99
views
MS Project VBA - Macro updating pjAssignmentTimescaledWork values from .csv file & Project automatically changing values
I'm writing an MS Project macro that reads that reads in a .csv file of resource data showing the remaining hours for each resource on each task that they're assigned to, then calculates the start and ...
0
votes
1
answer
26
views
Activate last Excel Workbook after multiple runs
I have a macro running in MS Project that exports timescaled data to a pre-formatted Excel Workbook. The export works fine. The issue is doing the final formatting in Excel. This is the code snippet ...