Print Individual task Lists from Project 2010

Hi
I have a routine which prints individual task lists from a Project Plan using VBA.  This routine is currently being piloted and they have advised that not all resources have a task list produced.  when I step through the code the Resource numbers
appears in this order:
1,3,18,7,8,9,11,12,13,14,18,19,20,21,22,23,24,25
Task lists are produced for each of the above resources.  However this misses resource numbers 2,4,5,6,10,15,16,17 and I have no idea why.  I have supplied my code below.  Any advice/guidance appreciated.  You will note that the task
lists are exported to a pre-defined spreadsheet template.
Sub PrintResourceCharts()
Dim xlApp As Excel.Application
Dim xlRange As Excel.Range
Dim rName As String
Dim Tsk As Task
Dim Res As Resource
Dim Ass As Assignment
Dim s As Worksheet
Dim BookNam As String
Dim Row As Integer
Dim fName As String
'Call SetSummaryTask - DB: commented out - run summaryname manually as required.
Call Task_CF_To_Assignment_CF
'Remove Existing Task List files from directory before creating new ones
On Error GoTo Finish
Kill "D:\Task List Templates\Task Lists\*.*"
Finish:
'Save File Location
fName = "D:\Task List Templates\Task Lists\"
'Start Excel and Create a new Workbook
Set xlApp = CreateObject("Excel.Application")
xlApp.Visible = True
'Export Resource and Task details
For Each Res In ActiveProject.Resources
If Res.Assignments.Count > 0 Then
Row = 5
xlApp.Workbooks.Open ("D:\Task List Templates\Task List Template.xlsm")
BookNam = xlApp.ActiveWorkbook.Name
Set s = xlApp.Workbooks(BookNam).Worksheets(1)
For Each Ass In Res.Assignments
Set xlRange = s.Range("A5")
If Ass.PercentWorkComplete < 100 Then
With xlRange
rName = Ass.ResourceName
s.Range("A" & Row).Value = Ass.ResourceName
s.Range("B" & Row).Value = Ass.TaskUniqueID
s.Range("D" & Row).Value = Ass.Text1
s.Range("E" & Row).Value = Ass.Start
s.Range("G" & Row).Value = Ass.Finish
End With
End If
Row = Row + 1
Set xlRange = xlRange.Offset(Row, 0) 'Point to next row
Next
xlApp.Visible = True
Application.DisplayAlerts = False
If rName = "" Then
GoTo Finished
End If
xlApp.ActiveWorkbook.SaveAs FileName:= _
"D:\Task List Templates\Task Lists\" & rName & ".xlsm", FileFormat:= _
xlOpenXMLWorkbookMacroEnabled, CreateBackup:=False
rName = ""
xlApp.ActiveWorkbook.Close savechanges:=False
Application.DisplayAlerts = True
End If
Next
Finished:
xlApp.Application.Quit
Set xlApp = Nothing
MsgBox ("Individual Task Lists have now been produced....")
End Sub

Tony,
You said you step through the code and it picks up resource 1. What happens when the loop gets to resource 2? Note: since resource 1 may have several assignments and stepping through them all could take some time, I sometimes use a stop statement in the
outer loop to make it a little easier to "catch" what I'm looking for. For example, you could put this right after the For Each Res...
If Res.ID = 2 then stop
Then step through and see what happens.
John

Similar Messages

  • What are the minimum requirements to successfully Synchronize a SharePoint 2010 Calendar or Task List with Outlook 2010?

    What are the minimum requirements to successfully Synchronize a SharePoint 2010 Calendar or Task List with Outlook 2010?
    SharePoint permission levels required for the user profile?
    Does the user need top level permissions on the SharePoint site?
    What other minimum requirements must be met for Outlook 2010 to synchronize successfully with SharePoint 2010?
    TheDrape

    Hi,
    To synchronize these libraries and lists, you must have Outlook 2010 installed on your client computer and you must have Collaborate permission to the library or list.
    You don’t need any permissions for the user profile.
    I provide you a link about synchronizing SharePoint 2010 content with Outlook 2010 for your reference:
    http://office.microsoft.com/en-us/sharepoint-foundation-help/synchronize-sharepoint-2010-content-with-outlook-2010-HA101881295.aspx
    Thanks,
    Rock Wang
    Rock Wang TechNet Community Support

  • The printing of .pdf file from Project 2013 stops when the file name should be written. Project 2013 crashes. Does someone know what is wrong between Project 2013 and Adobe Acrobat 9?

    The printing of .pdf file from Project 2013 stops when the file name should be written. Project 2013 crashes. Does someone know what is wrong between Project 2013 and Adobe Acrobat 9?

    The Acrobat 9.x product family passed into "End of Support" mid-year of 2013.
    Acrobat 9 support of MS Project via PDFMaker stops with Office 2007.
    For Office 2013 support you must use Acrobat XI (11.0.1) or newer. 
    A good to have reference:
    https://helpx.adobe.com/acrobat/kb/compatible-web-browsers-pdfmaker-applications.html
    Acrobat Pro and Standard DC are what are currently available for purchase. 
    Be well...

  • Printing the pick list from the delivery automatically

    Hi All,
    Please let me know how to do the : Printing the pick list from the delivery automatically ?
    Thanks in advance.
    Regards,
    Nagaraju.

    hi,
    execute VL70.
    balajia

  • Sorting grouped tasks in MS Project 2010

    Dear Forum,
    I created a view and grouped the tasks in MS Project 2010. The following problem comes up: As I can only change between "ascending" and "descending" while creating the Group, all my tasks sort alphabetically but I want to have them
    arranged in chronological order. When I try to sort them, they stay as they are.
    One solution I could think of would be to add for example numbers in front of my tasks (e.g. 1_task1, 2_task2..) so Project would arrange them accordingly but that would not look nice, neither would I have to Change it manually each time.
    Another solution would be to create a custom field including the sequence and then Group my tasks accordingly but I was wondering if any of you folks know any smart solution to this problem?
    Regards,
    Heiner

    Heiner,
    I believe the attached link explains that unfortunately what you are requesting is not possible.  I was looking for something similar to this as well.
    http://www.msofficeforums.com/project/10176-groups-sorted-start-date-ms-project.html
    I'm using PWA 2010 and open up a portfolio of projects at one time.  The best work around I have found is remove the grouping, insert the field called "Project", and then sort by Project, then by start date.
    Good luck,
    Sandy

  • Deallocate maintenance task list from order

    Dear Expert
    I have attached a maintenance task list in maintenance order through Extras>> Task list selection>>direct entry.
    due to some reson I want to deallocate same task list from that order.
    how I can do it.????
    Regards
    Prasad

    HI Pete
    thank you so much for your reply. I tried this and when I was trying to assign same task list with same geoup counter(but modified operations)it is giving below error.
    how to correct it ??
    and deleting operations from order,does not remove task list  from maintenance order. it still shows under planning tab.
    error Meassage
    No operations available for selection in chosen funct. loc. task list PS-ADM-MAIN-A-7220-0601 12
    Message no. IW615
    Diagnosis
    You have selected a task list to include in the maintenance order or service order.
    The system can no longer provide operations for you to select from for this task list because they have all already been included in the order and the indicator One-time operation selection has been set.
    System Response
    Processing will not be continued.
    Procedure
    Remove the indicator One-time operation selection.
    Regard
    Prasad

  • How to retrieve Task Lists from All Subsites to the Parent Site and display in Grid view using CAML Query

    How to retrieve Task Lists from All Subsites to the Parent Site and display in  Grid view using CAML Query + object model

    do u just want task list or items under task list for all subsites
    for items use spsitedataquery ref
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsitedataquery.aspx use recursive to get it from alll subsite under site collection
    for tasklist only u can a simply use a for loop to find in all subsite
    Manish Sati

  • HT4356 Is there a way to print a contact list from an iPhone?

    Is there a way to print a contact list from an iPhone?

    Another way to do this is to use Contact Sheet (https://itunes.apple.com/app/id894488957?mt=8) which can print your contacts and pictures or it can export them into an Excel file.  You can print all of your contacts or just a select group that you choose.  You can even share contacts and only include the fields you want, so, for example, if you want to share email addresses with a new mom's group but you don't want to share home addresses, you can create a contact share file (VCF) that only includes the names and email addresses of the members of your new mom's group!

  • List of delayed tasks in MS Project 2010

    Hi Experts !!
    Is there a way out to find all the delayed tasks in a project.
    Also, a list of task either running/continuing or starting in between two dates.
    TKP86

    Hi,
    "Late" implies a comparison between two dates. One is the finish date of the task; do you mean current date is the other one?
    In other words, are you looking for tasks with a planned finish date before today, but not yet finished?
    That implies you will not really track your project, meaning that when a task's plan changes, that will impact the planning of other tasks so your planned finish date could be moving al the time.. I have the impression that in your mind, the original plan
    will always be "the plan". And the utility of a baselin is that it is an immovable copy of that original plan - such that you can enter actual start/finish dates when reality strikes..
    By all means, you could set a formula in a flag field to show the definition of Late as I guess you have in mind:
    iif([% Complete]<100;IIf((projdatediff([Finish];Now())>0);No;Yes);No)
    Greetings,

  • Can you turn in hours worked on exchange task lists with project server exchange integration

    Can you turn in hours worked on the task list in Exchange if you turn on exchange integration?  We are using Project Server 2010 and Exchange 2010.  We want to turn on timesheets to report time and were wondering if you can use Exhange to
    turn in hours worked on a task that you were assigned.  Most people will use timesheets but for those individuals that only rarely work on a task in a project we want to allow them to turn the hours in on Exchange.
    Cletus51

    Hi
    As per my undersatnding you want the resource to fill his no of hours  worked in exchange server,
    but the problem is like
    The data you can update is not timephased, therefore you can only update the %complete or actual work.
    You need to do some customisation to achieve the same.
    Please go through the below link which may be helpful to you
    http://appleparkltd.wordpress.com/2010/07/13/project-server-2010-%E2%80%93-exchange-integration/
    Thanks
    Geeth If you feel that the answer which i gave you is Helpful please select it as Answer/helpful.

  • Project Pro hangs while opening a schedule from Project 2010 server.

    Hi,
    We have an issue with opening a schedule from Project server 2010. Project client is not responding. when we try to open schedule in PWA. I am getting unable to open file do you want to open in default view. No matter which view I choose keep getting the
    same error. The only view i can see resource view however it will not let me edit. I did notice Project Manager had entered resource names first, last name format which do not exist in our resource pool.  We can open other schedule except this particular
    one. 
    Thank you

    Obviously, my first thoughts are that this plan is corrupted in some fashion. Entering Resource names differentluy should not cause this issue, they will just not be recognized as Enterprise Resources by the system.
    Are you experiencing the issue if you try to open the schedule from PWA? If you are able to open from PWA, try publishing it from PWA and see if it throws any errors.
    Also, how about trying it from a different machine?
    And finally, it might be worthwhile to check if you have the latest Client Update for Project installed (or atleast matching with the server).
    If none fof these work,
    a) you could try restoring it from Archive Database (assuming you have a daily schedule backup running)
    b) If you are able to open it from another machine, you could use the "Save for sharing" feature to try and resolve any corruption with the schedule itself.
    Prasanna Adavi,PMP,MCTS,MCITP,MCT http://thinkepm.blogspot.com

  • Copy General Task List from one service order to another one

    Dear Guru,
    I have the following questions:
    1- From a service order in IW32, how can I see the link between the operations and components?
    2- I want to be able to copy all the operations and all the components contained in a service order into another service order for a similar type of equipment. Can someone help me step by step on what needs doing?
    KR
    Christian

    Hello Sebastian,
    Many thanks for your quick reply indeed on this.
    Now this is the catch: I know that I could create a new service order based on a previously created one using IW31, however in my department they are creating sales orders for equipments in the normal SAP SD flow.
    In one the material line they enter a service material which is converted into a ZC03 (Service order) when saving the normal sales order which creates automatically a Service Order number.
    Because they create a lot of those service order in that way, they want to be able to populate them with the same list of operations and relevant components all the time.
    If they would be using IW31 to make copies, they would have to cancel the previously generated service order deriving from the regular Sales Order in SD which we want to avoid simply because it alters the original sales document flow.
    Question:
    1- I tried to copy the description of the task lists present in my service order thinking that would also copy the list of relevant and subsequent components defined for each task. The system has only copied the description of the tasks but not the components.
    Is there a way we could copy a list of general tasks to automatically have those coming with the relevant components?
    Please advise
    KR
    Christian

  • Scripted Import MRU list from Office 2010.

    Hello all, i was wondering if anyone could help with this, we have a script that exports the MRUs as reg keys from office 2010, it exports the following as a .reg file on the source machine, and on the destination machine it imports the reg key so a user
    moving machines has all of their recent documents:
    Windows Registry Editor Version 5.00
    [HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Word\File MRU]
    "Max Display"=dword:00000019
    "Item 1"="[F00000000][T01CF9ABB0FC89840][O00000000]*C:\\Users\\USERNAME\\Documents\\FILENAME.xlsx"
    This works absolutely fine when coming from 2010 and going to 2010, however since we have put 2013 on the destination machines, the script doesn't work due to the user ID field being unique to each user:
    Windows Registry Editor Version 5.00
    [HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Excel\User MRU\AD_CC97ADD968A5532BF33D5693E751F2355768058F0819CBCF30AD727C87634047\File MRU]
    "Max Display"=dword:00000019
    "Item 1"="[F00000000][T01CF9ABB0FC89840][O00000000]*C:\\Users\\USERNAME\\Documents\\FILENAME.xlsx"
    would anyone know of a way to export from 2010, obtain the AD_CC9...... ID, and change the .reg file to this as part of a scripted import? 
    as it stands im having to open each application (word, excel, powerpoint) and click on file to generate the AD_CC..... reg key, then copy the key name from registry editor, and edit my 2010 exported .reg files to re-import manually on the destination machine.

    You might want to take a look at below thread:
    http://community.spiceworks.com/topic/461503-office-2013-and-recents-list
    http://social.technet.microsoft.com/Forums/en-US/07267496-cfcd-4cf0-810a-8ee91b213dfc/office-2007-to-2010-migrating-file-mru-not-working?forum=officesetupdeployprevious
    For a specific script, I would suggest you to seek assistance in Microsoft OneScript center, that's the dedicated place for script issues:
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
    Thanks,

  • List teamplate (template created on migrated custom list from SP 2010 to 2013) not appearing in Add an app section in SP 2013

    We have migrated from SP 2010 to SP 2013. When we are trying to create list template from the migrated OOB custom list. List template successfully created but it is not appearing in Add an app section in SP 2013.

    Please make sure you have activated "Team Collaboration Lists" feature under Site Features. Also check if the template in the list template gallery is published.

  • Since I updated the latest Firefox, I can no longer print my task list.

    There is a task list that Google Gmail provides for you to be able to insert various daily tasks. Each day I type in my tasks, then print them off. When I ask it to print this phrase appears on the task sheet: About:Blank -
    Nothing more. It only began the moment I downloaded the latest version of Firefox.

    I no longer have this problem.  Thanks to Terence Devlin.  Thank you for the information you provided on other posts.

Maybe you are looking for