ms-project

MS Project 2013: display resources on summary tasks

旧时模样 提交于 2019-12-02 11:16:35
Is there a way to configure MS Project 2013 so that it displays in a resource column (eg, resource initials) of the Gantt Chart view of summary tasks the UNION of all resources assigned to its leaf subtasks. Say for example that I have a summary task S with 2 subtasks S1 & S2, S2 being itself divided into subsubtasks S21 & S22. Say also that I have allocated resources R1,R2 to S1, resources R2,R3 to S21 and resource R4 to S22. With my current configuration, the resource initial column of both S2 and S are left blank. Instead, I would like the resource column of S2 to display R2, R3, R4 and the

Loop through each field for MS Project

ぃ、小莉子 提交于 2019-12-02 02:04:00
I am trying to loop through each field in my MS Project file and gather information about that field (custom name is particular). What is the easiest way to do this? Thanks To get the custom name of a field you'll need the field constant and to loop through all fields, you'll need to store a list of all field constants . Here is a simple example to get you started. I hard-coded an array of the field constants for the Task Text1-30 fields. Sub GetCustomFieldNames() Dim TextFields As Variant TextFields = Array(188743731, 188743734, 188743737, 188743740, 188743743 _ , 188743746, 188743747,

Slow VBA macro writing in cells

别来无恙 提交于 2019-11-30 07:34:43
问题 I have a VBA macro, that writes in data into a cleared out worksheet, but it's really slow! I'm instantiating Excel from a Project Professional. Set xlApp = New Excel.Application xlApp.ScreenUpdating = False Dim NewBook As Excel.WorkBook Dim ws As Excel.Worksheet Set NewBook = xlApp.Workbooks.Add() With NewBook .Title = "SomeData" Set ws = NewBook.Worksheets.Add() ws.Name = "SomeData" End With xlApp.Calculation = xlCalculationManual 'I am setting this to manual here RowNumber=2 Some random

MS Project Gantt chart control usage in C#

拜拜、爱过 提交于 2019-11-30 04:00:36
问题 Has anybody used the MS Project Gantt chart control in C#? If yes, can you share some resources regarding this? 回答1: You could also check Gantt Chart Library for WPF or Windows Forms, they do not require Microsoft Project installed on the client computer, but provide similar UI for project and related Gantt Charts. 回答2: Try these links for a start. http://www.ilog.com/products/ganttnet/ http://www.netronic.com/products-for-developers/gantt-charts.html?gclid=COLdutasoZUCFQunQwodoWOPkw 回答3: My

Programmatically access a Microsoft Project (MPP) file from C#

微笑、不失礼 提交于 2019-11-30 03:15:28
What are my options for programmatically accessing a Microsoft Project file? What are the pros and cons of each approach? I will basically need to import all data from the file into another data structure. Using the Office Interop assembies is low on the preference scale. Here are the options: Interop (messy and horribly slow for large projects) Save project in XML and work with it (messy) Save project in the database (that's not publishing and it is available for project 2003 only - see ODBC option while saving). I've seen it being used a lot in the integration scenarios Projette (commercial,

Connect to a project server when opening MS Project

梦想与她 提交于 2019-11-29 16:26:56
I have a vbscript that checks to see if MS Project is open. If it's already open it runs a macro if not it should open Project then run the macro. It works fine if Project is already open. If project isn't open the script successfully opens and runs the macro but fails half way through. Basically it fails because the macro that is being called opens files from project server. even with my default account set to the Project server url and 'when starting' set to 'choose my default account' it still fails. vbscript to open & run macro: dim pjApp on error resume next set pjApp = GetObject(,

Slow VBA macro writing in cells

纵然是瞬间 提交于 2019-11-29 04:49:50
I have a VBA macro, that writes in data into a cleared out worksheet, but it's really slow! I'm instantiating Excel from a Project Professional. Set xlApp = New Excel.Application xlApp.ScreenUpdating = False Dim NewBook As Excel.WorkBook Dim ws As Excel.Worksheet Set NewBook = xlApp.Workbooks.Add() With NewBook .Title = "SomeData" Set ws = NewBook.Worksheets.Add() ws.Name = "SomeData" End With xlApp.Calculation = xlCalculationManual 'I am setting this to manual here RowNumber=2 Some random foreach cycle ws.Cells(RowNumber, 1).Value = some value ws.Cells(RowNumber, 2).Value = some value ws

disabling overwrite existing file prompt in Microsoft office interop FileSaveAs method

感情迁移 提交于 2019-11-29 02:02:17
I am using Ms Office Interop assemblies to create a MS Project file. To save the file created, I am using FileSaveAs method and it prompts a message saying that if you want to replace the existing file. I want to suppress the message, and I didn't find any parameter in FileSaveAs method for this purpose. Any Idea on this? I'am using C# as my programming language. dotNetkow I ran into this issue when working with Excel Interop. The best I've been able to find is to disable all Office alerts, like this: Microsoft.Office.Interop.MSProject.Application msProjectApp = new Microsoft.Office.Interop

disabling overwrite existing file prompt in Microsoft office interop FileSaveAs method

☆樱花仙子☆ 提交于 2019-11-27 21:46:43
问题 I am using Ms Office Interop assemblies to create a MS Project file. To save the file created, I am using FileSaveAs method and it prompts a message saying that if you want to replace the existing file. I want to suppress the message, and I didn't find any parameter in FileSaveAs method for this purpose. Any Idea on this? I'am using C# as my programming language. 回答1: I ran into this issue when working with Excel Interop. The best I've been able to find is to disable all Office alerts, like

VBA array sort function?

大城市里の小女人 提交于 2019-11-25 22:45:30
问题 I\'m looking for a decent sort implementation for arrays in VBA. A Quicksort would be preferred. Or any other sort algorithm other than bubble or merge would suffice. Please note that this is to work with MS Project 2003, so should avoid any of the Excel native functions and anything .net related. 回答1: Take a look here: Edit: The referenced source (allexperts.com) has since closed, but here are the relevant author comments: There are many algorithms available on the web for sorting. The most