How to create Function with linking rule with vba

How to create Function with linking rule with vba

Hi all,
I created function with code below, now I need to do linking rule for all variables in the picture "TestPicture". Is it possible with vba ?
Br.
Lukasz
VBA Code:

Dim zFCT As RtFunction
Set zFCT = MyWorkspace.ActiveDocument.RtFunctions.Create("TestFunction", tpPicture)
With zFCT
.DynProperties("Picture") = "TestPicture"
End With


This is a migrated post! Originally posted on 01.10.2013 by user rrkobra. Please be aware that information can be outdated.