|
ED
|
avaliable
|
RT
|
not used
|
Creates and returns a new Object.
'Create a new VarAssignment (Allocation) Sub CreateAssignment() Dim zVarAssign As VarAssignment Dim zSrcVar As Variable Dim zDstVar As Variable 'OR by ID Set zSrcVar = MyWorkspace.ActiveDocument.Variables.Item("WIZ_VAR_10") Set zDstVar = MyWorkspace.ActiveDocument.Variables.Item("WIZ_VAR_11") Set zVarAssign = MyWorkspace.ActiveDocument.VarAssignments.CreateByID("MyAssignment", zSrcVar.PvID, zDstVar.PvID) End Sub