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

Announcements
Save an extra $150 Dec 1–7 with code CYBERWEEK - stackable with early bird savings: Register
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.

1 Solution

Accepted Solutions
2 Replies
Not applicable

devans_1
Creator
Creator
Author

Perfect. Many thanks