Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 814 Bytes

Project.Selection.Tasks.md

File metadata and controls

43 lines (26 loc) · 814 Bytes
title ms.service api_name ms.assetid ms.date ms.localizationpriority
Selection.Tasks property (Project)
project-server
Project.Selection.Tasks
8f58ea8e-a3a1-f5aa-ad5d-6447fe777453
06/08/2017
medium

Selection.Tasks property (Project)

Gets a Tasks collection representing the tasks in the selection. Read-only Tasks.

Syntax

expression. Tasks

expression A variable that represents a Selection object.

Example

The following example displays the name of every task in the selection.

Sub TaskNames() 
 
 Dim T As Task, Names As String 
 
 For Each T In ActiveSelection.Tasks 
 Names = Names & T.Name & vbCrLf 
 Next T 
 
 MsgBox Names 
 
End Sub

[!includeSupport and feedback]