Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

Is it possible to access the Task.Subproject property at runtime while iterating through a Tasks collection?

$
0
0

Good evening,

And another newbie question: Is it possible to access the Task.Subproject property at runtime? I'm trying to get a Task's Subproject's Path so I can then pull doc properties from it without opening the file, but each time I try to access it in code I run up against an error, either Type Mismatch or Invalid Qualifier. Code snippet follows:

For Each currentTask in projectCurrent
	...
	With currentTask
		...
		Set propReader = New DSOFile.OleDocumentProperties
		propReader.Open .Subproject.Path, True, dsoOptionOpenReadOnlyIfNoWriteAccess
		...
	End With
	...
Next currentTask

Is it possible to do this, and if not, what is the proper use of the Task.Subproject property?

Thanks,

John


John C. Johnson


Viewing all articles
Browse latest Browse all 5347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>