Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi *,
is it possible to use the value of a selected field as value.
eg. I have the a year field that contains years from 2000 - 2009.
I'd like to use the select field e.g. 2006 as a variable.
Thanks
I think you can do that in macro
Suppose you have one field ref year value and you want to make receive year same as ref year.
Set Z = ActiveDocument.Fields("Reference Year")
ActiveDocument.Fields("Receive Year").Selectvalues Z.GetSelectedValues()
aslo ref the API guide
Talha
You can also do this in a variable by adding the following to the variable declaration:
=GetFieldSelections("ReceiveYear")
The only potential issue is that it does some rather odd things when more than one selection is made from the same field (when I say odd, it does make sense, but it seems odd).
Regards,
Nigel.
Not clear what exactly you want. If follow your question literally, the answer is to createa variable, e.g. vSelectedYear, and define it as =Year