Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
devans_1
Creator
Creator

Cyclic groups in a macro

Hi Everybody, I am trying to cycle through groups using a macro so (example) I am using the code:

for x = 1 to 4

  set grp = ActiveDocument.GetGroup (<GroupName>)

  msgbox (grp.GetActiveField.Name)

  grp.Cycle 1

next

to look at 4 field names within the group. This works fine except that one of the fields is a calculated expression and at this point I get the error 'Object Required - grp.GetActiveField'.

Does anybody know what is wrong ? It works fine for teh non-calculated expressions.

Labels (1)
1 Solution

Accepted Solutions
Not applicable

2 Replies
Not applicable

devans_1
Creator
Creator
Author

Perfect. Many thanks