I am having trouble with writing a macro to loop through all fields existing in a documents and identifiy the ones tagged with $dimension.
The problem is that I don't know how to get the initial list of ALL existing Fields in the active document.
Can you help me with that?
Below code will give you list of fields.
Sub TestRem ** Show name of all non-system fields in document **set flds = ActiveDocument.GetFieldDescriptionsfor i = 0 to flds.count - 1 set fld = flds.item(i) if not fld.IsSystem then msgbox(fld.Name)next
Great! That is what I needed.
Thanks a lot,
Retrieving data ...