Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.21 KB

Project.Table.TableFields.md

File metadata and controls

48 lines (32 loc) · 1.21 KB
title keywords f1_keywords ms.service api_name ms.assetid ms.date ms.localizationpriority
Table.TableFields property (Project)
vbapj.chm132698
vbapj.chm132698
project-server
Project.Table.TableFields
2db4b5fd-6238-b4ab-dc9f-5de991eaad8e
06/08/2017
medium

Table.TableFields property (Project)

Gets a TableFields collection representing the fields in the table. Read-only TableFields.

Syntax

expression. TableFields

expression A variable that represents a Table object.

Example

The following example changes the alignment of a column in an entry table. The macro asks for input from the user to indicate which column the user wants to center, then changes the display and refreshes the view.

Sub AutoWrap() 
 Dim fieldNumber As Integer 
 
 fieldNumber = InputBox$(Prompt:="Enter the number of the " _ 
 & "column you want to center in the Entry table." _ 
 & Chr(13) & "For example, Column 1 is the Indicators " _ 
 & "column.") 
 
 ActiveProject.TaskTables("Entry").TableFields(fieldNumber _ 
 + 1).AlignData = pjCenter 
 
 TableApply Name:="&Entry" 
End Sub

[!includeSupport and feedback]