Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi
How do i save the selection of a table into a variable?
Hi elint10110
You can do this By using Micro
for example ,if you have MyVar defined variable and you want to store last current selected value in this variable then
Sub
CurrentSelectionset
X=ActiveDocument.GetCurrentSelectionsS=X.selections
V=X.VarId
For
i=lbound(S) to ubound(S)ActiveDocument.Variables(
"MyVar").SetContent S(i), true
next
End
Sub
By using this micro you will get current selected value in the variable MyVar
And other related information please go through API topics(Get Selected Values and Variables )
Hope this will help you
That micro, where should be located??? in the script editor?
Hi
Create one variable in your dashboard and assign the following function in the variable
Your variable = =GetCurrentSelections()
Regards
Ashok
Hi
Please remove on assignment operater '=' from previous post
Regards
Hi
Using the
Variable name =GetFieldSelections(YourFieldName) you can specifically stored particular field selected value in the variable
Regards