Ah -- "constrained by a previous design decision"
The nasty bit of me wants to make you go back and re-write that macro to use an array or two... But no!
QandAs into Many Vars.kmmacros (8.9 KB)
I've used local variables to keep my namespace cleaner. If, as I suspect, you are using globals then after you've run this a couple of times with different cb numbers in the last action to check it works you should a) delete that last action, b) disable/delete the two "Set Variable 'Local_cb...' " actions, and c) enable the two "Set Variable 'cb...' " actions.
