Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-30-2024, 03:35 PM
noviceScheduler noviceScheduler is offline Macro in Custom Field not working for Sub Projects Windows 10 Macro in Custom Field not working for Sub Projects Office 2013
Novice
Macro in Custom Field not working for Sub Projects
 
Join Date: Jun 2024
Posts: 3
noviceScheduler is on a distinguished road
Default Macro in Custom Field not working for Sub Projects

Hi all.



I have an integrated schedule - Master Schedule with 8 Subprojects that. I have a macro in MS Project that copies a custom Task field to a custom Resource Field (Text 2 from Task to Resource field).

My issue is that the code is only working for the master schedule tasks, they're not working for tasks that are in "Sub Projects". I need the macro to copy the same fields for all the tasks in the integrated schedule including the "Sub Project" tasks.

Keeps on prompting me with "Run-time error 1001"

Ps help...

thank you.
Reply With Quote
  #2  
Old 07-03-2024, 11:31 AM
DaleHowardMVP DaleHowardMVP is offline Macro in Custom Field not working for Sub Projects Windows 10 Macro in Custom Field not working for Sub Projects Office 2021
Advanced Beginner
 
Join Date: Apr 2023
Posts: 53
DaleHowardMVP is on a distinguished road
Default

I think you need to add the following VBA code to your macro to account for each subproject in the master project:

Dim SubProj As Subproject

For Each SubProj In ActiveProject.Subprojects


Next SubProj

Give it a try and let us know if it helps.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Summary Tasks / Custom Field Formula not working Jere_RV90 Project 1 10-13-2023 05:47 AM
Custom Style Sets Stopped Working on Custom Template after Recent Microsoft Update CynthiaKPollard Word 6 12-20-2021 08:37 PM
Auto-update field codes in Outlook Template - AutoOpen Macro not working victoriasun Outlook 5 12-22-2015 01:54 AM
Macro in Custom Field not working for Sub Projects Custom field formula not working at summary task level abw1987 Project 3 10-05-2011 07:17 AM
Master Projects with different Working Days Philip.Skeet Project 2 08-19-2011 09:45 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:39 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft