Previous Document Next Document
DataField.Reorder

Sub Reorder(NewIndex As Long)

Member of DataField

The Reorder method reorders the position of a data field as it appears in the Object Data Manager docker. It does this by assigning a new index number to the data field.

Parameters
Description
NewIndex
Acts a preset placeholder for each object in a DataFields collection, uniquely identifying each member of the collection

The following code example moves the Comments field to the top of the list.

Sub Test() 
 ActiveDocument.DataFields("Comments").Reorder 1 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.