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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Macro to select next value in Listbox

I have a listbox that can only have 1 selected value and want to create buttons that select the next (or previous) value in the listbox. In pseudo code, it should do the following:


Sub SelectNext
get [index of currently selected value]
if index < [number of rows in listbox] then
listbox.select [index + 1]
end if
End Sub


Can anyone share a macro that would accomplish this?

10 Replies
Anonymous
Not applicable
Author

Thank you soo much!!!

Both of answers worked to me, but yours keep the right order of my clients field.