Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am trying to upgrade some old macros
The old logic contained the following
set fprop = ActiveDocument.GetField("Measure").GetProperties
fprop.OnSelectMacro = "MeasureDefaults"
ActiveDocument.GetField("Measure").SetProperties fprop
which, of course, doesn't work in QV10. From what I gleaned from various forum posts, I have the following:
set fprop = ActiveDocument.GetField("Measure").GetProperties
set actions=fprop.OnSelectActionItems
if actions.Count<1 then
actions.Add
actions.Item(0).Type = 13
ActiveDocument.GetField("Measure").SetProperties fprop
end if
Which does get the trigger set to fire a macro, but I can't seem to find the command in order to set the macro name to "MeasureDefaults".
Can anyone point me to any documentation on what commands I need to do?
(I will also need to do a similar thing to variables, once I get this to work.)
Thanks.
found my answer in another forum post.
found my answer in another forum post.